Enum pfctl::FilterRuleAction
source · pub enum FilterRuleAction {
Pass,
Drop(DropAction),
}
Expand description
Enum describing what should happen to a packet that matches a filter rule.
Variants§
Pass
Drop(DropAction)
Implementations§
source§impl FilterRuleAction
impl FilterRuleAction
pub fn rule_flags(&self) -> u32
Trait Implementations§
source§impl Clone for FilterRuleAction
impl Clone for FilterRuleAction
source§fn clone(&self) -> FilterRuleAction
fn clone(&self) -> FilterRuleAction
Returns a copy 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 FilterRuleAction
impl Debug for FilterRuleAction
source§impl From<FilterRuleAction> for u8
impl From<FilterRuleAction> for u8
source§fn from(rule_action: FilterRuleAction) -> Self
fn from(rule_action: FilterRuleAction) -> Self
Converts to this type from the input type.
source§impl Hash for FilterRuleAction
impl Hash for FilterRuleAction
source§impl PartialEq for FilterRuleAction
impl PartialEq for FilterRuleAction
impl Copy for FilterRuleAction
impl Eq for FilterRuleAction
impl StructuralPartialEq for FilterRuleAction
Auto Trait Implementations§
impl Freeze for FilterRuleAction
impl RefUnwindSafe for FilterRuleAction
impl Send for FilterRuleAction
impl Sync for FilterRuleAction
impl Unpin for FilterRuleAction
impl UnwindSafe for FilterRuleAction
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)