Enum inet2_addr::AddrParseError
source · pub enum AddrParseError {
WrongPortNumber,
WrongAddrFormat(String),
WrongSocketFormat(String),
WrongSocketExtFormat(String),
UnknownProtocolError(String),
NeedsTorFeature,
}
Expand description
Errors during address string parse process
Variants§
WrongPortNumber
Wrong port number; must be a 16-bit unsigned integer number
WrongAddrFormat(String)
Can’t recognize IPv4, v6 or Onion v2/v3 address in string “{_0}”
WrongSocketFormat(String)
Wrong format of socket address string “{_0}”; use <inet_address>[:<port>]
WrongSocketExtFormat(String)
Wrong format of extended socket address string “{_0}”; use <transport>://<inet_address>[:<port>]
UnknownProtocolError(String)
Unknown transport protocol “{_0}”
NeedsTorFeature
Tor addresses are not supported; consider compiling with tor
feature
Trait Implementations§
source§impl Debug for AddrParseError
impl Debug for AddrParseError
source§impl Display for AddrParseError
impl Display for AddrParseError
source§impl Error for AddrParseError
impl Error for AddrParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 NodeAddrParseError
impl From<AddrParseError> for NodeAddrParseError
source§fn from(v: AddrParseError) -> Self
fn from(v: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<AddrParseError> for ServerAddrParseError
impl From<AddrParseError> for ServerAddrParseError
source§fn from(v: AddrParseError) -> Self
fn from(v: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<AddrParseError> for String
impl From<AddrParseError> for String
source§fn from(err: AddrParseError) -> Self
fn from(err: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<NoOnionSupportError> for AddrParseError
impl From<NoOnionSupportError> for AddrParseError
source§fn from(v: NoOnionSupportError) -> Self
fn from(v: NoOnionSupportError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for AddrParseError
impl From<ParseIntError> for AddrParseError
source§fn from(v: ParseIntError) -> Self
fn from(v: ParseIntError) -> Self
Converts to this type from the input type.