Enum ip_network::IpNetworkError [−][src]
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).
Tuple Fields of NetmaskError
0: u8
Host bits are set in given network IP address.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more