#[non_exhaustive]pub enum ErrorKind {
Show 13 variants
DeviceOpen,
InvalidRuleCombination,
UninitializedFieldError,
InvalidInterfaceName,
InvalidAnchorName,
InvalidPortRange,
InvalidLabel,
InvalidAddressFamily,
InvalidDirection,
InvalidTransportProtocol,
StateAlreadyActive,
AnchorDoesNotExist,
Ioctl,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeviceOpen
Failed to open PF control file /dev/pf
InvalidRuleCombination
The firewall rule is invalidly configured
UninitializedFieldError
A required field on a builder was not set
InvalidInterfaceName
The supplied network interface name is not compatible with PF
InvalidAnchorName
The supplied anchor name in not compatible with PF
InvalidPortRange
The supplied port is an invalid range
InvalidLabel
The supplied rule label is not compatible with PF.
InvalidAddressFamily
The address family is invalid
InvalidDirection
The direction is invalid
InvalidTransportProtocol
The transport protocol is invalid
StateAlreadyActive
The target state was already active
AnchorDoesNotExist
This PF anchor does not exist
Ioctl
System returned an error during ioctl system call
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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