pub enum IpPrefixParseError {
MissingPrefixLength,
InvalidAddress,
InvalidPrefixLength,
OutOfRange(IpPrefixError),
}Expand description
Parsing errors for IpPrefix.
Variants§
MissingPrefixLength
The input did not contain a slash and prefix length.
InvalidAddress
The address portion is not a valid IPv4 or IPv6 address.
InvalidPrefixLength
The prefix portion is not an unsigned integer.
OutOfRange(IpPrefixError)
The parsed prefix length is invalid for the address family.
Trait Implementations§
Source§impl Clone for IpPrefixParseError
impl Clone for IpPrefixParseError
impl Copy for IpPrefixParseError
Source§impl Debug for IpPrefixParseError
impl Debug for IpPrefixParseError
Source§impl Display for IpPrefixParseError
impl Display for IpPrefixParseError
impl Eq for IpPrefixParseError
Source§impl Error for IpPrefixParseError
impl Error for IpPrefixParseError
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 IpPrefixParseError
impl PartialEq for IpPrefixParseError
impl StructuralPartialEq for IpPrefixParseError
Auto Trait Implementations§
impl Freeze for IpPrefixParseError
impl RefUnwindSafe for IpPrefixParseError
impl Send for IpPrefixParseError
impl Sync for IpPrefixParseError
impl Unpin for IpPrefixParseError
impl UnsafeUnpin for IpPrefixParseError
impl UnwindSafe for IpPrefixParseError
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