pub enum IpAddrParsingError {
Parse(ParseError),
InvalidIpAddressLength {
offset: usize,
length: u8,
},
}Variants§
Trait Implementations§
Source§impl Clone for IpAddrParsingError
impl Clone for IpAddrParsingError
Source§fn clone(&self) -> IpAddrParsingError
fn clone(&self) -> IpAddrParsingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IpAddrParsingError
impl Debug for IpAddrParsingError
Source§impl<'de> Deserialize<'de> for IpAddrParsingError
impl<'de> Deserialize<'de> for IpAddrParsingError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IpAddrParsingError
impl Display for IpAddrParsingError
impl Eq for IpAddrParsingError
Source§impl Error for IpAddrParsingError
impl Error for IpAddrParsingError
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 From<ParseError> for IpAddrParsingError
impl From<ParseError> for IpAddrParsingError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IpAddrParsingError
impl PartialEq for IpAddrParsingError
Source§impl Serialize for IpAddrParsingError
impl Serialize for IpAddrParsingError
impl StructuralPartialEq for IpAddrParsingError
Auto Trait Implementations§
impl Freeze for IpAddrParsingError
impl RefUnwindSafe for IpAddrParsingError
impl Send for IpAddrParsingError
impl Sync for IpAddrParsingError
impl Unpin for IpAddrParsingError
impl UnsafeUnpin for IpAddrParsingError
impl UnwindSafe for IpAddrParsingError
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