Enum ip_network::IpNetworkError [−][src]
pub enum IpNetworkError { NetmaskError(u8), HostBitsSet, }
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
impl Debug for IpNetworkError
[src]
impl Debug for IpNetworkError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for IpNetworkError
[src]
impl Error for IpNetworkError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for IpNetworkError
[src]
impl Display for IpNetworkError
Auto Trait Implementations
impl Send for IpNetworkError
impl Send for IpNetworkError
impl Sync for IpNetworkError
impl Sync for IpNetworkError