pub struct ContainerToWiderWorldRule {
pub network: Option<String>,
pub src_container: Option<String>,
pub matches: Option<String>,
pub verdict: RuleVerdict,
pub external_network_interface: Option<String>,
}Expand description
Definition for a rule to be used in the container-to-wider-world section.
Fields§
§network: Option<String>Network of the source container to apply the rule to.
src_container: Option<String>Source container to apply the rule to. Requires network.
matches: Option<String>Additional match-string, which will be added to the nftables command.
verdict: RuleVerdictVerdict for rule (accept, drop or reject).
external_network_interface: Option<String>Specific external network interface to target.
Trait Implementations§
Source§impl Clone for ContainerToWiderWorldRule
impl Clone for ContainerToWiderWorldRule
Source§fn clone(&self) -> ContainerToWiderWorldRule
fn clone(&self) -> ContainerToWiderWorldRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContainerToWiderWorldRule
impl Debug for ContainerToWiderWorldRule
Source§impl<'de> Deserialize<'de> for ContainerToWiderWorldRule
impl<'de> Deserialize<'de> for ContainerToWiderWorldRule
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
impl Eq for ContainerToWiderWorldRule
Source§impl Hash for ContainerToWiderWorldRule
impl Hash for ContainerToWiderWorldRule
Source§impl Process<Iptables> for ContainerToWiderWorldRule
impl Process<Iptables> for ContainerToWiderWorldRule
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 ContainerToWiderWorldRule
impl Process<Nftables> for ContainerToWiderWorldRule
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 StructuralPartialEq for ContainerToWiderWorldRule
Auto Trait Implementations§
impl Freeze for ContainerToWiderWorldRule
impl RefUnwindSafe for ContainerToWiderWorldRule
impl Send for ContainerToWiderWorldRule
impl Sync for ContainerToWiderWorldRule
impl Unpin for ContainerToWiderWorldRule
impl UnsafeUnpin for ContainerToWiderWorldRule
impl UnwindSafe for ContainerToWiderWorldRule
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.