pub enum StackAddrError {
MissingPart(&'static str),
InvalidIp(AddrParseError),
InvalidPort(ParseIntError),
UnknownProtocol(String),
InvalidEncoding(&'static str),
}Expand description
An error that can occur when parsing a StackAddr string.
Variants§
MissingPart(&'static str)
A required part of the address was missing.
InvalidIp(AddrParseError)
Failed to parse an IP address.
InvalidPort(ParseIntError)
Failed to parse a port number.
UnknownProtocol(String)
Unknown protocol encountered.
InvalidEncoding(&'static str)
Invalid encoding encountered.
Trait Implementations§
Source§impl Debug for StackAddrError
impl Debug for StackAddrError
Source§impl Display for StackAddrError
impl Display for StackAddrError
Source§impl Error for StackAddrError
impl Error for StackAddrError
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 From<AddrParseError> for StackAddrError
impl From<AddrParseError> for StackAddrError
Source§fn from(e: AddrParseError) -> Self
fn from(e: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for StackAddrError
impl From<ParseIntError> for StackAddrError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StackAddrError
impl RefUnwindSafe for StackAddrError
impl Send for StackAddrError
impl Sync for StackAddrError
impl Unpin for StackAddrError
impl UnwindSafe for StackAddrError
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