[][src]Struct dfw::types::DFW

pub struct DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>, 
{ pub global_defaults: GlobalDefaults, pub backend_defaults: Option<B::Defaults>, pub initialization: Option<Initialization>, pub container_to_container: Option<ContainerToContainer>, pub container_to_wider_world: Option<ContainerToWiderWorld>, pub container_to_host: Option<ContainerToHost>, pub wider_world_to_container: Option<WiderWorldToContainer>, pub container_dnat: Option<ContainerDNAT>, }

DFW is the parent type defining the complete configuration used by DFW to build up the firewall rules.

Every section is optional.

Fields

global_defaults: GlobalDefaults

The defaults configuration section.

You can leave this section unspecified.

backend_defaults: Option<B::Defaults>

The backend_defaults configuration section

initialization: Option<Initialization>
👎 Deprecated since 1.2.0:

Provide the initialization in the nftables backend-defaults section instead. This field will be removed with release 2.0.0.

This field is DEPRECATED!

Provide the custom tables in the nftables backend-defaults section instead. (This field will be removed with release 2.0.0.)

Please consult the firewall-backend documentation if you want to know how to use this field.

container_to_container: Option<ContainerToContainer>

The container_to_container configuration section

container_to_wider_world: Option<ContainerToWiderWorld>

The container_to_wider_world configuration section

container_to_host: Option<ContainerToHost>

The container_to_host configuration section

wider_world_to_container: Option<WiderWorldToContainer>

The wider_world_to_container configuration section

container_dnat: Option<ContainerDNAT>

The container_dnat configuration section

Trait Implementations

impl<B: Clone> Clone for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>,
    B::Defaults: Clone
[src]

impl<B: Debug> Debug for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>,
    B::Defaults: Debug
[src]

impl<'de, B> Deserialize<'de> for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>, 
[src]

impl<B: Eq> Eq for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>,
    B::Defaults: Eq
[src]

impl<B: PartialEq> PartialEq<DFW<B>> for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>,
    B::Defaults: PartialEq
[src]

impl Process<Iptables> for DFW<Iptables>[src]

impl Process<Nftables> for DFW<Nftables>[src]

impl<B> StructuralEq for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>, 
[src]

impl<B> StructuralPartialEq for DFW<B> where
    B: FirewallBackend,
    DFW<B>: Process<B>, 
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for DFW<B> where
    <B as FirewallBackend>::Defaults: RefUnwindSafe

impl<B> Send for DFW<B> where
    <B as FirewallBackend>::Defaults: Send

impl<B> Sync for DFW<B> where
    <B as FirewallBackend>::Defaults: Sync

impl<B> Unpin for DFW<B> where
    <B as FirewallBackend>::Defaults: Unpin

impl<B> UnwindSafe for DFW<B> where
    <B as FirewallBackend>::Defaults: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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>,