pub enum ServiceAddrParseError {
InvalidAddr(AddrParseError),
Unrecognized(String),
}
Expand description
Errors parsing ServiceAddr
string representation
Variants§
InvalidAddr(AddrParseError)
Invalid internet socket address
Unrecognized(String)
invalid server address string ‘{0}’
Trait Implementations§
source§impl Clone for ServiceAddrParseError
impl Clone for ServiceAddrParseError
source§fn clone(&self) -> ServiceAddrParseError
fn clone(&self) -> ServiceAddrParseError
Returns a copy of the value. Read more
1.0.0 · 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 ServiceAddrParseError
impl Debug for ServiceAddrParseError
source§impl Display for ServiceAddrParseError
impl Display for ServiceAddrParseError
source§impl Error for ServiceAddrParseError
impl Error for ServiceAddrParseError
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 ServiceAddrParseError
impl From<AddrParseError> for ServiceAddrParseError
source§fn from(v: AddrParseError) -> Self
fn from(v: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<ServiceAddrParseError> for String
impl From<ServiceAddrParseError> for String
source§fn from(err: ServiceAddrParseError) -> Self
fn from(err: ServiceAddrParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ServiceAddrParseError> for ServiceAddrParseError
impl PartialEq<ServiceAddrParseError> for ServiceAddrParseError
source§fn eq(&self, other: &ServiceAddrParseError) -> bool
fn eq(&self, other: &ServiceAddrParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.