pub enum RuleAction {
Accept,
Drop,
Reject,
Log,
Jump(String),
Return,
Masquerade,
Snat(Ipv4Address),
Dnat(Ipv4Address, Port),
}Expand description
Action to take when a rule matches
Variants§
Accept
Allow the packet
Drop
Silently drop the packet
Reject
Drop and send ICMP unreachable
Log
Log the packet and continue evaluation
Jump(String)
Jump to another chain
Return
Return from current chain to caller
Masquerade
Source NAT with masquerading (use outgoing interface address)
Snat(Ipv4Address)
Source NAT to a specific address
Dnat(Ipv4Address, Port)
Destination NAT to a specific address and port
Trait Implementations§
Source§impl Clone for RuleAction
impl Clone for RuleAction
Source§fn clone(&self) -> RuleAction
fn clone(&self) -> RuleAction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleAction
impl Debug for RuleAction
Source§impl Default for RuleAction
impl Default for RuleAction
Source§fn default() -> RuleAction
fn default() -> RuleAction
Returns the “default value” for a type. Read more
Source§impl PartialEq for RuleAction
impl PartialEq for RuleAction
impl Eq for RuleAction
impl StructuralPartialEq for RuleAction
Auto Trait Implementations§
impl Freeze for RuleAction
impl RefUnwindSafe for RuleAction
impl Send for RuleAction
impl Sync for RuleAction
impl Unpin for RuleAction
impl UnwindSafe for RuleAction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)