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
sourceimpl Debug for IpNetworkError
impl Debug for IpNetworkError
sourceimpl Display for IpNetworkError
impl Display for IpNetworkError
sourceimpl Error for IpNetworkError
impl Error for IpNetworkError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<IpNetworkError> for IpNetworkError
impl PartialEq<IpNetworkError> for IpNetworkError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &IpNetworkError) -> bool
fn ne(&self, other: &IpNetworkError) -> bool
This method tests for !=
.
impl StructuralPartialEq for IpNetworkError
Auto Trait Implementations
impl RefUnwindSafe for IpNetworkError
impl Send for IpNetworkError
impl Sync for IpNetworkError
impl Unpin for IpNetworkError
impl UnwindSafe for IpNetworkError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more