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)>
Returns 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()
Source§impl PartialEq for IpNetworkError
impl PartialEq for IpNetworkError
impl StructuralPartialEq for IpNetworkError
Auto Trait Implementations§
impl Freeze for IpNetworkError
impl RefUnwindSafe for IpNetworkError
impl Send for IpNetworkError
impl Sync for IpNetworkError
impl Unpin for IpNetworkError
impl UnwindSafe for IpNetworkError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more