#[non_exhaustive]pub enum AcceptError {
Connecting {
source: ConnectingError,
meta: Meta,
},
Connection {
source: ConnectionError,
meta: Meta,
},
MissingRemoteEndpointId {
source: RemoteEndpointIdError,
meta: Meta,
},
NotAllowed {
meta: Meta,
},
User {
source: AnyError,
meta: Meta,
},
}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.
Connecting
Connection
MissingRemoteEndpointId
NotAllowed
Fields
§
meta: MetaCaptured call-site metadata
User
Implementations§
Trait Implementations§
Source§impl Debug for AcceptError
impl Debug for AcceptError
Source§impl Display for AcceptError
impl Display for AcceptError
Source§impl Error for AcceptError
impl Error for AcceptError
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<AcceptError> for AnyError
impl From<AcceptError> for AnyError
Source§fn from(value: AcceptError) -> AnyError
fn from(value: AcceptError) -> AnyError
Converts to this type from the input type.
Source§impl From<AnyError> for AcceptError
impl From<AnyError> for AcceptError
Source§impl From<ClosedStream> for AcceptError
impl From<ClosedStream> for AcceptError
Source§fn from(err: ClosedStream) -> Self
fn from(err: ClosedStream) -> Self
Converts to this type from the input type.
Source§impl From<ConnectingError> for AcceptError
impl From<ConnectingError> for AcceptError
Source§fn from(source: ConnectingError) -> Self
fn from(source: ConnectingError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for AcceptError
impl From<ConnectionError> for AcceptError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AcceptError
impl From<Error> for AcceptError
Source§impl From<RemoteEndpointIdError> for AcceptError
impl From<RemoteEndpointIdError> for AcceptError
Source§fn from(source: RemoteEndpointIdError) -> Self
fn from(source: RemoteEndpointIdError) -> Self
Converts to this type from the input type.
Source§impl StackError for AcceptError
impl StackError for AcceptError
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 AcceptError
impl !RefUnwindSafe for AcceptError
impl Send for AcceptError
impl Sync for AcceptError
impl Unpin for AcceptError
impl !UnwindSafe for AcceptError
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> CompatExt for T
impl<T> CompatExt for T
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> StackErrorExt for Twhere
T: StackError + 'static,
impl<T> StackErrorExt for Twhere
T: StackError + 'static,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.