Enum nullnet_firewall::FirewallAction
source · pub enum FirewallAction {
ACCEPT,
DENY,
REJECT,
}Expand description
Action dictated by a firewall rule.
Each firewall rule is associated to a given action.
Variants§
ACCEPT
Allows traffic that matches the rule to pass.
DENY
Silently blocks traffic that matches the rule.
REJECT
Blocks traffic that matches the rule.
An ICMP Destination Unreachable message should be sent back to the traffic source.
Trait Implementations§
source§impl Clone for FirewallAction
impl Clone for FirewallAction
source§fn clone(&self) -> FirewallAction
fn clone(&self) -> FirewallAction
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 FirewallAction
impl Debug for FirewallAction
source§impl Default for FirewallAction
impl Default for FirewallAction
source§fn default() -> FirewallAction
fn default() -> FirewallAction
Returns the “default value” for a type. Read more
source§impl Display for FirewallAction
impl Display for FirewallAction
source§impl FromStr for FirewallAction
impl FromStr for FirewallAction
source§impl PartialEq for FirewallAction
impl PartialEq for FirewallAction
source§fn eq(&self, other: &FirewallAction) -> bool
fn eq(&self, other: &FirewallAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for FirewallAction
impl Eq for FirewallAction
impl StructuralEq for FirewallAction
impl StructuralPartialEq for FirewallAction
Auto Trait Implementations§
impl RefUnwindSafe for FirewallAction
impl Send for FirewallAction
impl Sync for FirewallAction
impl Unpin for FirewallAction
impl UnwindSafe for FirewallAction
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