Enum ip_network::IpNetworkError
source · pub enum IpNetworkError {
NetmaskError(u8),
HostBitsSet,
}
Expand description
Errors when creating new IPv4 or IPv6 networks.
Variants§
NetmaskError(u8)
Network mask is bigger than possible for given IP version (32 for IPv4, 128 for IPv6).
HostBitsSet
Host bits are set in given network IP address.
Trait Implementations§
source§impl Debug for IpNetworkError
impl Debug for IpNetworkError
source§impl Display for IpNetworkError
impl Display for IpNetworkError
source§impl Error for IpNetworkError
impl Error for IpNetworkError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 IpNetworkError
impl PartialEq for IpNetworkError
source§fn eq(&self, other: &IpNetworkError) -> bool
fn eq(&self, other: &IpNetworkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpNetworkError
Auto Trait Implementations§
impl Freeze for IpNetworkError
impl RefUnwindSafe for IpNetworkError
impl Send for IpNetworkError
impl Sync for IpNetworkError
impl Unpin for IpNetworkError
impl UnwindSafe for IpNetworkError
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