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)>
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 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.
Auto Trait Implementations§
impl Freeze for ServerAddrParseError
impl RefUnwindSafe for ServerAddrParseError
impl Send for ServerAddrParseError
impl Sync for ServerAddrParseError
impl Unpin for ServerAddrParseError
impl UnwindSafe for ServerAddrParseError
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