Enum nullnet_firewall::FirewallError
source · pub enum FirewallError {
Show 13 variants
InvalidDportValue(String),
InvalidSportValue(String),
InvalidDestValue(String),
InvalidSourceValue(String),
InvalidIcmpTypeValue(String),
InvalidProtocolValue(String),
InvalidDirection(String),
InvalidAction(String),
UnknownOption(String),
EmptyOption(String),
DuplicatedOption(String),
NotEnoughArguments,
NotApplicableIcmpType,
}Expand description
Error that may arise as a consequence of an invalid firewall specification.
Variants§
InvalidDportValue(String)
The value supplied for the option --dport is invalid.
InvalidSportValue(String)
The value supplied for the option --sport is invalid.
InvalidDestValue(String)
The value supplied for the option --dest is invalid.
InvalidSourceValue(String)
The value supplied for the option --source is invalid.
InvalidIcmpTypeValue(String)
The value supplied for the option --icmp-type is invalid.
InvalidProtocolValue(String)
The value supplied for the option --proto is invalid.
InvalidDirection(String)
An invalid direction has been specified for a firewall rule.
InvalidAction(String)
An invalid action has been specified for a firewall rule.
UnknownOption(String)
An unknown option has been specified for a firewall rule.
EmptyOption(String)
An empty option has been specified for a firewall rule.
DuplicatedOption(String)
The same option has been specified multiple times for the same firewall rule.
NotEnoughArguments
Not enough arguments have been specified for a firewall rule.
NotApplicableIcmpType
The option --icmp-type is valid only if --proto 1 or --proto 58 is also specified.
Trait Implementations§
source§impl Clone for FirewallError
impl Clone for FirewallError
source§fn clone(&self) -> FirewallError
fn clone(&self) -> FirewallError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FirewallError
impl Debug for FirewallError
source§impl Display for FirewallError
impl Display for FirewallError
source§impl PartialEq for FirewallError
impl PartialEq for FirewallError
source§fn eq(&self, other: &FirewallError) -> bool
fn eq(&self, other: &FirewallError) -> bool
self and other values to be equal, and is used
by ==.