pub enum IpFilterError {
EmptyCidr,
InvalidIp(String),
InvalidPrefix(String),
PrefixOutOfRange(u8),
}Expand description
Errors produced when parsing CIDR strings or compiling filter policies.
Variants§
EmptyCidr
Input string was empty after trimming whitespace.
InvalidIp(String)
Address portion could not be parsed as IPv4 or IPv6.
InvalidPrefix(String)
Prefix length portion could not be parsed as an unsigned integer.
PrefixOutOfRange(u8)
Prefix length exceeded 32 (IPv4) or 128 (IPv6).
Trait Implementations§
Source§impl Clone for IpFilterError
impl Clone for IpFilterError
Source§impl Debug for IpFilterError
impl Debug for IpFilterError
Source§impl Display for IpFilterError
Formats IpFilterError for display diagnostics.
impl Display for IpFilterError
Formats IpFilterError for display diagnostics.
impl Eq for IpFilterError
Source§impl Error for IpFilterError
Marks IpFilterError as a standard error type.
impl Error for IpFilterError
Marks IpFilterError as a standard error type.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for IpFilterError
impl PartialEq for IpFilterError
impl StructuralPartialEq for IpFilterError
Auto Trait Implementations§
impl Forget for IpFilterError
impl Freeze for IpFilterError
impl Move for IpFilterError
impl RefUnwindSafe for IpFilterError
impl Send for IpFilterErrorwhere
RawVecInner: Send,
impl Sync for IpFilterErrorwhere
RawVecInner: Sync,
impl Unpin for IpFilterError
impl UnsafeUnpin for IpFilterError
impl UnwindSafe for IpFilterErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.