#[non_exhaustive]pub enum InvalidSocketAddr {
AddrParse {
source: AddrParseError,
meta: Meta,
},
InvalidPrefixLength {
meta: Meta,
},
Infallible {
source: Infallible,
meta: Meta,
},
DuplicateDefaultAddr {
meta: Meta,
},
}Available on non-
wasm_browser only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AddrParse
InvalidPrefixLength
Fields
§
meta: MetaCaptured call-site metadata
Infallible
DuplicateDefaultAddr
Fields
§
meta: MetaCaptured call-site metadata
Trait Implementations§
Source§impl Debug for InvalidSocketAddr
impl Debug for InvalidSocketAddr
Source§impl Display for InvalidSocketAddr
impl Display for InvalidSocketAddr
Source§impl Error for InvalidSocketAddr
impl Error for InvalidSocketAddr
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 InvalidSocketAddr
impl From<AddrParseError> for InvalidSocketAddr
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for InvalidSocketAddr
impl From<Infallible> for InvalidSocketAddr
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidSocketAddr> for AnyError
impl From<InvalidSocketAddr> for AnyError
Source§fn from(value: InvalidSocketAddr) -> AnyError
fn from(value: InvalidSocketAddr) -> AnyError
Converts to this type from the input type.
Source§impl StackError for InvalidSocketAddr
impl StackError for InvalidSocketAddr
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.
Auto Trait Implementations§
impl Freeze for InvalidSocketAddr
impl RefUnwindSafe for InvalidSocketAddr
impl Send for InvalidSocketAddr
impl Sync for InvalidSocketAddr
impl Unpin for InvalidSocketAddr
impl UnwindSafe for InvalidSocketAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more