Enum inet2_addr::ServerAddrParseError
source · pub enum ServerAddrParseError {
InvalidNode(NodeAddrParseError),
InvalidAddr(AddrParseError),
Unrecognized(String),
}
Expand description
Errors parsing ServerAddr
string representation
Variants§
InvalidNode(NodeAddrParseError)
Invalid node address
InvalidAddr(AddrParseError)
Invalid internet socket address
Unrecognized(String)
invalid server address string ‘{0}’
Trait Implementations§
source§impl Debug for ServerAddrParseError
impl Debug for ServerAddrParseError
source§impl Display for ServerAddrParseError
impl Display for ServerAddrParseError
source§impl Error for ServerAddrParseError
impl Error for ServerAddrParseError
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 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<NodeAddrParseError> for ServerAddrParseError
impl From<NodeAddrParseError> for ServerAddrParseError
source§fn from(v: NodeAddrParseError) -> Self
fn from(v: NodeAddrParseError) -> Self
Converts to this type from the input type.
source§impl From<ServerAddrParseError> for String
impl From<ServerAddrParseError> for String
source§fn from(err: ServerAddrParseError) -> Self
fn from(err: ServerAddrParseError) -> Self
Converts to this type from the input type.