Enum pfctl::DropAction
source · pub enum DropAction {
Drop,
Return,
ReturnRst,
ReturnIcmp,
}
Expand description
Action to take for FilterRuleAction::Drop
.
Variants§
Drop
Silently drop the packet.
Return
Return a TCP RST or ICMP reject packet.
ReturnRst
Return a TCP RST packet.
ReturnIcmp
Return an ICMP reject packet.
Trait Implementations§
source§impl Clone for DropAction
impl Clone for DropAction
source§fn clone(&self) -> DropAction
fn clone(&self) -> DropAction
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 DropAction
impl Debug for DropAction
source§impl From<DropAction> for u32
impl From<DropAction> for u32
source§fn from(drop_action: DropAction) -> Self
fn from(drop_action: DropAction) -> Self
Converts to this type from the input type.
source§impl Hash for DropAction
impl Hash for DropAction
source§impl PartialEq for DropAction
impl PartialEq for DropAction
source§fn eq(&self, other: &DropAction) -> bool
fn eq(&self, other: &DropAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DropAction
impl Eq for DropAction
impl StructuralPartialEq for DropAction
Auto Trait Implementations§
impl Freeze for DropAction
impl RefUnwindSafe for DropAction
impl Send for DropAction
impl Sync for DropAction
impl Unpin for DropAction
impl UnwindSafe for DropAction
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