pub enum ChainPolicy {
Accept,
Drop,
}Expand description
Representation of chain policies.
§Attribution
Parts of the documentation have been taken from https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains.
Variants§
Accept
The accept verdict means that the packet will keep traversing the network stack.
Drop
The drop verdict means that the packet is discarded if the packet reaches the end of the base chain.
Trait Implementations§
Source§impl Clone for ChainPolicy
impl Clone for ChainPolicy
Source§fn clone(&self) -> ChainPolicy
fn clone(&self) -> ChainPolicy
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 moreimpl Copy for ChainPolicy
Source§impl Debug for ChainPolicy
impl Debug for ChainPolicy
Source§impl Default for ChainPolicy
impl Default for ChainPolicy
Source§fn default() -> ChainPolicy
fn default() -> ChainPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChainPolicy
impl<'de> Deserialize<'de> for ChainPolicy
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 Display for ChainPolicy
impl Display for ChainPolicy
impl Eq for ChainPolicy
Source§impl FromStr for ChainPolicy
impl FromStr for ChainPolicy
Source§impl Hash for ChainPolicy
impl Hash for ChainPolicy
Source§impl PartialEq for ChainPolicy
impl PartialEq for ChainPolicy
impl StructuralPartialEq for ChainPolicy
Source§impl TryFrom<&str> for ChainPolicy
impl TryFrom<&str> for ChainPolicy
Auto Trait Implementations§
impl Freeze for ChainPolicy
impl RefUnwindSafe for ChainPolicy
impl Send for ChainPolicy
impl Sync for ChainPolicy
impl Unpin for ChainPolicy
impl UnsafeUnpin for ChainPolicy
impl UnwindSafe for ChainPolicy
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.