Struct async_nats::error::Error
source · pub struct Error<Kind>{ /* private fields */ }
Expand description
The error type for the NATS client, generic by the kind of error.
Implementations§
Trait Implementations§
source§impl<Kind> Error for Error<Kind>
impl<Kind> Error for Error<Kind>
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<Error<BatchRequestErrorKind>> for BatchError
impl From<Error<BatchRequestErrorKind>> for BatchError
source§fn from(err: BatchRequestError) -> Self
fn from(err: BatchRequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<ConsumerErrorKind>> for ConsumerCreateStrictError
impl From<Error<ConsumerErrorKind>> for ConsumerCreateStrictError
source§fn from(err: ConsumerError) -> Self
fn from(err: ConsumerError) -> Self
Converts to this type from the input type.
source§impl From<Error<ConsumerErrorKind>> for ConsumerUpdateError
impl From<Error<ConsumerErrorKind>> for ConsumerUpdateError
source§fn from(err: ConsumerError) -> Self
fn from(err: ConsumerError) -> Self
Converts to this type from the input type.
source§impl From<Error<ConsumerErrorKind>> for GetError
impl From<Error<ConsumerErrorKind>> for GetError
source§fn from(err: ConsumerError) -> Self
fn from(err: ConsumerError) -> Self
Converts to this type from the input type.
source§impl From<Error<ConsumerErrorKind>> for WatchError
impl From<Error<ConsumerErrorKind>> for WatchError
source§fn from(err: ConsumerError) -> Self
fn from(err: ConsumerError) -> Self
Converts to this type from the input type.
source§impl From<Error<ConsumerErrorKind>> for WatchError
impl From<Error<ConsumerErrorKind>> for WatchError
source§fn from(err: ConsumerError) -> Self
fn from(err: ConsumerError) -> Self
Converts to this type from the input type.
source§impl From<Error<CreateStreamErrorKind>> for SealError
impl From<Error<CreateStreamErrorKind>> for SealError
source§fn from(err: UpdateStreamError) -> Self
fn from(err: UpdateStreamError) -> Self
Converts to this type from the input type.
source§impl From<Error<DirectGetErrorKind>> for EntryError
impl From<Error<DirectGetErrorKind>> for EntryError
source§fn from(err: DirectGetError) -> Self
fn from(err: DirectGetError) -> Self
Converts to this type from the input type.
source§impl From<Error<EntryErrorKind>> for CreateError
impl From<Error<EntryErrorKind>> for CreateError
source§fn from(error: EntryError) -> Self
fn from(error: EntryError) -> Self
Converts to this type from the input type.
source§impl From<Error<InfoErrorKind>> for DeleteError
impl From<Error<InfoErrorKind>> for DeleteError
source§impl From<Error<InfoErrorKind>> for UpdateMetadataError
impl From<Error<InfoErrorKind>> for UpdateMetadataError
source§impl From<Error<MessagesErrorKind>> for OrderedError
impl From<Error<MessagesErrorKind>> for OrderedError
source§fn from(err: MessagesError) -> Self
fn from(err: MessagesError) -> Self
Converts to this type from the input type.
source§impl From<Error<MessagesErrorKind>> for OrderedError
impl From<Error<MessagesErrorKind>> for OrderedError
source§fn from(err: MessagesError) -> Self
fn from(err: MessagesError) -> Self
Converts to this type from the input type.
source§impl From<Error<OrderedErrorKind>> for WatcherError
impl From<Error<OrderedErrorKind>> for WatcherError
source§fn from(err: OrderedError) -> Self
fn from(err: OrderedError) -> Self
Converts to this type from the input type.
source§impl From<Error<OrderedErrorKind>> for WatcherError
impl From<Error<OrderedErrorKind>> for WatcherError
source§fn from(err: OrderedError) -> Self
fn from(err: OrderedError) -> Self
Converts to this type from the input type.
source§impl From<Error<PublishErrorKind>> for DeleteError
impl From<Error<PublishErrorKind>> for DeleteError
source§fn from(err: PublishError) -> Self
fn from(err: PublishError) -> Self
Converts to this type from the input type.
source§impl From<Error<PublishErrorKind>> for RequestError
impl From<Error<PublishErrorKind>> for RequestError
source§fn from(e: PublishError) -> Self
fn from(e: PublishError) -> Self
Converts to this type from the input type.
source§impl From<Error<PublishErrorKind>> for UpdateError
impl From<Error<PublishErrorKind>> for UpdateError
source§fn from(err: PublishError) -> Self
fn from(err: PublishError) -> Self
Converts to this type from the input type.
source§impl From<Error<PublishMetadataErrorKind>> for AddLinkError
impl From<Error<PublishMetadataErrorKind>> for AddLinkError
source§impl From<Error<PurgeErrorKind>> for DeleteError
impl From<Error<PurgeErrorKind>> for DeleteError
source§fn from(err: PurgeError) -> Self
fn from(err: PurgeError) -> Self
Converts to this type from the input type.
source§impl From<Error<PutErrorKind>> for CreateError
impl From<Error<PutErrorKind>> for CreateError
source§impl From<Error<RequestErrorKind>> for AccountError
impl From<Error<RequestErrorKind>> for AccountError
source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<RequestErrorKind>> for ConsumerCreateStrictError
impl From<Error<RequestErrorKind>> for ConsumerCreateStrictError
source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<RequestErrorKind>> for ConsumerError
impl From<Error<RequestErrorKind>> for ConsumerError
source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<RequestErrorKind>> for ConsumerUpdateError
impl From<Error<RequestErrorKind>> for ConsumerUpdateError
source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<RequestErrorKind>> for CreateStreamError
impl From<Error<RequestErrorKind>> for CreateStreamError
source§fn from(error: RequestError) -> Self
fn from(error: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<RequestErrorKind>> for DirectGetError
impl From<Error<RequestErrorKind>> for DirectGetError
source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<RequestErrorKind>> for RequestError
impl From<Error<RequestErrorKind>> for RequestError
source§fn from(error: RequestError) -> Self
fn from(error: RequestError) -> Self
Converts to this type from the input type.
source§impl From<Error<StreamErrorKind>> for GetError
impl From<Error<StreamErrorKind>> for GetError
source§fn from(err: StreamError) -> Self
fn from(err: StreamError) -> Self
Converts to this type from the input type.
source§impl From<Error<StreamErrorKind>> for WatchError
impl From<Error<StreamErrorKind>> for WatchError
source§fn from(err: StreamError) -> Self
fn from(err: StreamError) -> Self
Converts to this type from the input type.
source§impl From<Error<StreamErrorKind>> for WatchError
impl From<Error<StreamErrorKind>> for WatchError
source§fn from(err: StreamError) -> Self
fn from(err: StreamError) -> Self
Converts to this type from the input type.
source§impl From<Error<StreamMessageErrorKind>> for DirectGetError
impl From<Error<StreamMessageErrorKind>> for DirectGetError
source§fn from(err: StreamMessageError) -> Self
fn from(err: StreamMessageError) -> Self
Converts to this type from the input type.
source§impl From<Error<UpdateErrorKind>> for CreateError
impl From<Error<UpdateErrorKind>> for CreateError
source§fn from(error: UpdateError) -> Self
fn from(error: UpdateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Kind> Freeze for Error<Kind>where
Kind: Freeze,
impl<Kind> !RefUnwindSafe for Error<Kind>
impl<Kind> Send for Error<Kind>where
Kind: Send,
impl<Kind> Sync for Error<Kind>where
Kind: Sync,
impl<Kind> Unpin for Error<Kind>where
Kind: Unpin,
impl<Kind> !UnwindSafe for Error<Kind>
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