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
Available on crate feature jetstream only.
impl From<Error<BatchRequestErrorKind>> for BatchError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<ConsumerErrorKind>> for ConsumerCreateStrictError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<ConsumerErrorKind>> for ConsumerUpdateError
Available on crate feature
jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<ConsumerErrorKind>> for GetError
Available on crate features
object-store and jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<ConsumerErrorKind>> for WatchError
Available on crate features
kv and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<ConsumerErrorKind>> for WatchError
Available on crate features
object-store and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<CreateStreamErrorKind>> for SealError
Available on crate features
object-store and jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<DirectGetErrorKind>> for EntryError
Available on crate features
kv and jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<EntryErrorKind>> for CreateError
Available on crate features
kv and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<InfoErrorKind>> for DeleteError
Available on crate features
object-store and jetstream only.Source§impl From<Error<InfoErrorKind>> for GetError
Available on crate features object-store and jetstream only.
impl From<Error<InfoErrorKind>> for GetError
Available on crate features
object-store and jetstream only.Source§impl From<Error<InfoErrorKind>> for UpdateMetadataError
Available on crate features object-store and jetstream only.
impl From<Error<InfoErrorKind>> for UpdateMetadataError
Available on crate features
object-store and jetstream only.Source§impl From<Error<MessagesErrorKind>> for OrderedError
Available on crate feature jetstream only.
impl From<Error<MessagesErrorKind>> for OrderedError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<MessagesErrorKind>> for OrderedError
Available on crate feature
jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<OrderedErrorKind>> for WatcherError
Available on crate features
kv and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<OrderedErrorKind>> for WatcherError
Available on crate features
object-store and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<PublishErrorKind>> for DeleteError
Available on crate features
object-store and jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<PublishErrorKind>> for UpdateError
Available on crate features
kv and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<PublishMetadataErrorKind>> for AddLinkError
Available on crate features
object-store and jetstream only.Source§impl From<Error<PublishMetadataErrorKind>> for PutError
Available on crate features object-store and jetstream only.
impl From<Error<PublishMetadataErrorKind>> for PutError
Available on crate features
object-store and jetstream only.Source§impl From<Error<PurgeErrorKind>> for DeleteError
Available on crate features object-store and jetstream only.
impl From<Error<PurgeErrorKind>> for DeleteError
Available on crate features
object-store and jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<PutErrorKind>> for CreateError
Available on crate features
kv and jetstream only.Source§impl From<Error<RequestErrorKind>> for AccountError
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for AccountError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for ConsumerCreateStrictError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for ConsumerError
Available on crate feature
jetstream only.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 ConsumerInfoError
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for ConsumerInfoError
Available on crate feature
jetstream only.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 ConsumerUpdateError
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for ConsumerUpdateError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for CreateStreamError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for DirectGetError
Available on crate feature
jetstream only.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
Available on crate feature jetstream only.
impl From<Error<RequestErrorKind>> for RequestError
Available on crate feature
jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<StreamErrorKind>> for GetError
Available on crate features
object-store and jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<StreamErrorKind>> for WatchError
Available on crate features
kv and jetstream only.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
Available on crate features object-store and jetstream only.
impl From<Error<StreamErrorKind>> for WatchError
Available on crate features
object-store and jetstream only.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
Available on crate feature jetstream only.
impl From<Error<StreamMessageErrorKind>> for DirectGetError
Available on crate feature
jetstream only.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
Available on crate features kv and jetstream only.
impl From<Error<UpdateErrorKind>> for CreateError
Available on crate features
kv and jetstream only.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