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