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)
HostBitsSetHost bits are set in given network IP address
Trait Implementations
impl Debug for IpNetworkError[src]
impl Debug for IpNetworkErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for IpNetworkError[src]
impl Error for IpNetworkErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 IpNetworkErrorAuto Trait Implementations
impl Send for IpNetworkError
impl Send for IpNetworkErrorimpl Sync for IpNetworkError
impl Sync for IpNetworkError