[][src]Enum dfw::iptables::PolicyOrRule

pub enum PolicyOrRule {
    Policy {
        table: String,
        chain: String,
        policy: String,
    },
    Rule {
        table: String,
        chain: String,
        value: String,
    },
}

Policy or rule representation for iptables firewall backend.

Variants

Policy

Rule specifying a chain policy.

Fields of Policy

table: String

Associated iptables table.

chain: String

Associated iptables chain.

policy: String

Policy to set.

Rule

Actual filter rule that will be added to a chain.

Fields of Rule

table: String

Associated iptables table.

chain: String

Associated iptables chain.

value: String

The rule itself in valid iptables syntax.

Trait Implementations

impl Clone for PolicyOrRule[src]

impl Debug for PolicyOrRule[src]

Auto Trait Implementations

impl RefUnwindSafe for PolicyOrRule

impl Send for PolicyOrRule

impl Sync for PolicyOrRule

impl Unpin for PolicyOrRule

impl UnwindSafe for PolicyOrRule

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,