[−][src]Struct dfw::types::DFW
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>
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]
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: Clone,
impl<B: Debug> Debug for DFW<B> where
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: Debug,
[src]
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: Debug,
impl<'de, B> Deserialize<'de> for DFW<B> where
B: FirewallBackend,
DFW<B>: Process<B>,
[src]
B: FirewallBackend,
DFW<B>: Process<B>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<B: Eq> Eq for DFW<B> where
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: Eq,
[src]
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: Eq,
impl<B: PartialEq> PartialEq<DFW<B>> for DFW<B> where
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: PartialEq,
[src]
B: FirewallBackend,
DFW<B>: Process<B>,
B::Defaults: PartialEq,
impl Process<Iptables> for DFW<Iptables>
[src]
fn process(
&self,
ctx: &ProcessContext<'_, Iptables>
) -> Result<Option<Vec<IptablesRule>>>
[src]
&self,
ctx: &ProcessContext<'_, Iptables>
) -> Result<Option<Vec<IptablesRule>>>
impl Process<Nftables> for DFW<Nftables>
[src]
impl<B> StructuralEq for DFW<B> where
B: FirewallBackend,
DFW<B>: Process<B>,
[src]
B: FirewallBackend,
DFW<B>: Process<B>,
impl<B> StructuralPartialEq for DFW<B> where
B: FirewallBackend,
DFW<B>: Process<B>,
[src]
B: FirewallBackend,
DFW<B>: Process<B>,
Auto Trait Implementations
impl<B> RefUnwindSafe for DFW<B> where
<B as FirewallBackend>::Defaults: RefUnwindSafe,
<B as FirewallBackend>::Defaults: RefUnwindSafe,
impl<B> Send for DFW<B> where
<B as FirewallBackend>::Defaults: Send,
<B as FirewallBackend>::Defaults: Send,
impl<B> Sync for DFW<B> where
<B as FirewallBackend>::Defaults: Sync,
<B as FirewallBackend>::Defaults: Sync,
impl<B> Unpin for DFW<B> where
<B as FirewallBackend>::Defaults: Unpin,
<B as FirewallBackend>::Defaults: Unpin,
impl<B> UnwindSafe for DFW<B> where
<B as FirewallBackend>::Defaults: UnwindSafe,
<B as FirewallBackend>::Defaults: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,