#[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.
Implementations§
Source§impl AcceptError
impl AcceptError
Sourcepub fn from_err<T>(value: T) -> AcceptError
pub fn from_err<T>(value: T) -> AcceptError
Creates a new user error from an arbitrary error type.
Sourcepub fn from_boxed(value: Box<dyn Error + Sync + Send>) -> AcceptError
pub fn from_boxed(value: Box<dyn Error + Sync + Send>) -> AcceptError
Creates a new user error from an arbitrary boxed error.
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<AnyError> for AcceptError
impl From<AnyError> for AcceptError
Source§fn from(source: AnyError) -> AcceptError
fn from(source: AnyError) -> AcceptError
Converts to this type from the input type.
Source§impl From<ClosedStream> for AcceptError
impl From<ClosedStream> for AcceptError
Source§fn from(err: ClosedStream) -> AcceptError
fn from(err: ClosedStream) -> AcceptError
Converts to this type from the input type.
Source§impl From<ConnectingError> for AcceptError
impl From<ConnectingError> for AcceptError
Source§fn from(source: ConnectingError) -> AcceptError
fn from(source: ConnectingError) -> AcceptError
Converts to this type from the input type.
Source§impl From<ConnectionError> for AcceptError
impl From<ConnectionError> for AcceptError
Source§fn from(source: ConnectionError) -> AcceptError
fn from(source: ConnectionError) -> AcceptError
Converts to this type from the input type.
Source§impl From<Error> for AcceptError
impl From<Error> for AcceptError
Source§fn from(err: Error) -> AcceptError
fn from(err: Error) -> AcceptError
Converts to this type from the input type.
Source§impl From<RemoteEndpointIdError> for AcceptError
impl From<RemoteEndpointIdError> for AcceptError
Source§fn from(source: RemoteEndpointIdError) -> AcceptError
fn from(source: RemoteEndpointIdError) -> AcceptError
Converts to this type from the input type.
Source§impl StackError for AcceptError
impl StackError for AcceptError
Source§fn as_std(&self) -> &(dyn Error + Sync + Send + 'static)
fn as_std(&self) -> &(dyn Error + Sync + Send + 'static)
Returns this error as a std error reference.
Source§fn into_std(self: Box<AcceptError>) -> Box<dyn Error + Sync + Send>
fn into_std(self: Box<AcceptError>) -> Box<dyn Error + Sync + Send>
Returns this error as a std error.
Source§fn as_dyn(&self) -> &dyn StackError
fn as_dyn(&self) -> &dyn StackError
Returns this error as a
dyn StackError.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
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 UnsafeUnpin for AcceptError
impl !UnwindSafe for AcceptError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> StackErrorExt for Twhere
T: StackError + 'static,
impl<T> StackErrorExt for Twhere
T: StackError + 'static,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.