pub enum InetTupleError {
NotInSharedNetwork,
NetworkLengthTooLongError(NetworkLengthTooLongError),
}
Expand description
Error type returned when creating Inet
pair
Variants§
The given addresses are not in the same network
NetworkLengthTooLongError(NetworkLengthTooLongError)
The network length was not valid (but was successfully parsed)
Trait Implementations§
Source§impl Clone for InetTupleError
impl Clone for InetTupleError
Source§fn clone(&self) -> InetTupleError
fn clone(&self) -> InetTupleError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InetTupleError
impl Debug for InetTupleError
Source§impl Display for InetTupleError
impl Display for InetTupleError
Source§impl Error for InetTupleError
impl Error for InetTupleError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<NetworkLengthTooLongError> for InetTupleError
impl From<NetworkLengthTooLongError> for InetTupleError
Source§fn from(e: NetworkLengthTooLongError) -> Self
fn from(e: NetworkLengthTooLongError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InetTupleError
impl PartialEq for InetTupleError
impl StructuralPartialEq for InetTupleError
Auto Trait Implementations§
impl Freeze for InetTupleError
impl RefUnwindSafe for InetTupleError
impl Send for InetTupleError
impl Sync for InetTupleError
impl Unpin for InetTupleError
impl UnwindSafe for InetTupleError
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