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 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 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 PartialEq for FirewallAction
impl PartialEq for FirewallAction
Source§impl ToSql for FirewallAction
impl ToSql for FirewallAction
Source§fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
impl Copy for FirewallAction
impl Eq for FirewallAction
impl StructuralPartialEq for FirewallAction
Auto Trait Implementations§
impl Freeze for FirewallAction
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