pub enum RuleVerdict {
Accept,
Drop,
Reject,
}Expand description
Representation of rule 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.
Reject
The reject verdict means that the packet is responded to with an ICMP message stating that it was rejected.
Trait Implementations§
Source§impl Clone for RuleVerdict
impl Clone for RuleVerdict
Source§fn clone(&self) -> RuleVerdict
fn clone(&self) -> RuleVerdict
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 RuleVerdict
impl Debug for RuleVerdict
Source§impl Default for RuleVerdict
impl Default for RuleVerdict
Source§fn default() -> RuleVerdict
fn default() -> RuleVerdict
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleVerdict
impl<'de> Deserialize<'de> for RuleVerdict
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 RuleVerdict
impl Display for RuleVerdict
Source§impl FromStr for RuleVerdict
impl FromStr for RuleVerdict
Source§impl Hash for RuleVerdict
impl Hash for RuleVerdict
Source§impl PartialEq for RuleVerdict
impl PartialEq for RuleVerdict
Source§impl TryFrom<&str> for RuleVerdict
impl TryFrom<&str> for RuleVerdict
Source§impl Value for RuleVerdict
impl Value for RuleVerdict
impl Copy for RuleVerdict
impl Eq for RuleVerdict
impl StructuralPartialEq for RuleVerdict
Auto Trait Implementations§
impl Freeze for RuleVerdict
impl RefUnwindSafe for RuleVerdict
impl Send for RuleVerdict
impl Sync for RuleVerdict
impl Unpin for RuleVerdict
impl UnwindSafe for RuleVerdict
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.