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()