pub struct WiderWorldToContainer {
pub rules: Option<Vec<WiderWorldToContainerRule>>,
}Expand description
The wider-world-to-container section, defining how containers can reached from the wider world.
Fields§
§rules: Option<Vec<WiderWorldToContainerRule>>An optional list of rules, see
WiderWorldToContainerRule.
§Example
The easiest way to define the rules is using TOMLs arrays of tables:
[[wider_world_to_container.rules]]
# first rule here
[[wider_world_to_container.rules]]
# second rule hereTrait Implementations§
Source§impl Clone for WiderWorldToContainer
impl Clone for WiderWorldToContainer
Source§fn clone(&self) -> WiderWorldToContainer
fn clone(&self) -> WiderWorldToContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WiderWorldToContainer
impl Debug for WiderWorldToContainer
Source§impl<'de> Deserialize<'de> for WiderWorldToContainer
impl<'de> Deserialize<'de> for WiderWorldToContainer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for WiderWorldToContainer
impl Hash for WiderWorldToContainer
Source§impl PartialEq for WiderWorldToContainer
impl PartialEq for WiderWorldToContainer
Source§impl Process<Iptables> for WiderWorldToContainer
impl Process<Iptables> for WiderWorldToContainer
Source§fn process(
&self,
ctx: &ProcessContext<'_, Iptables>,
) -> Result<Option<Vec<IptablesRule>>>
fn process( &self, ctx: &ProcessContext<'_, Iptables>, ) -> Result<Option<Vec<IptablesRule>>>
Process the current type within the given
ProcessContext, returning zero or more rules
to apply with nft.Source§impl Process<Nftables> for WiderWorldToContainer
impl Process<Nftables> for WiderWorldToContainer
Source§fn process(
&self,
ctx: &ProcessContext<'_, Nftables>,
) -> Result<Option<Vec<String>>>
fn process( &self, ctx: &ProcessContext<'_, Nftables>, ) -> Result<Option<Vec<String>>>
Process the current type within the given
ProcessContext, returning zero or more rules
to apply with nft.impl Eq for WiderWorldToContainer
impl StructuralPartialEq for WiderWorldToContainer
Auto Trait Implementations§
impl Freeze for WiderWorldToContainer
impl RefUnwindSafe for WiderWorldToContainer
impl Send for WiderWorldToContainer
impl Sync for WiderWorldToContainer
impl Unpin for WiderWorldToContainer
impl UnwindSafe for WiderWorldToContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.