#[repr(i32)]pub enum ChainPolicy {
Accept = 1,
Drop = 0,
}
Expand description
A chain policy. Decides what to do with a packet that was processed by the chain but did not match any rules.
Variants§
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 · 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 ChainPolicy
impl Debug for ChainPolicy
Source§impl Hash for ChainPolicy
impl Hash for ChainPolicy
Source§impl Ord for ChainPolicy
impl Ord for ChainPolicy
Source§fn cmp(&self, other: &ChainPolicy) -> Ordering
fn cmp(&self, other: &ChainPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChainPolicy
impl PartialEq for ChainPolicy
Source§impl PartialOrd for ChainPolicy
impl PartialOrd for ChainPolicy
impl Copy for ChainPolicy
impl Eq for ChainPolicy
impl StructuralPartialEq 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 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