Type Alias async_nats::client::RequestError
source · pub type RequestError = Error<RequestErrorKind>;Expand description
Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.
Aliased Type§
struct RequestError { /* private fields */ }Implementations§
Trait Implementations§
source§impl<Kind> Error for Error<Kind>where
Kind: Clone + Debug + Display + PartialEq,
impl<Kind> Error for Error<Kind>where Kind: Clone + Debug + Display + PartialEq,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<PublishError> for RequestError
impl From<PublishError> for RequestError
source§fn from(e: PublishError) -> Self
fn from(e: PublishError) -> Self
Converts to this type from the input type.
source§impl From<SubscribeError> for RequestError
impl From<SubscribeError> for RequestError
source§fn from(e: SubscribeError) -> Self
fn from(e: SubscribeError) -> Self
Converts to this type from the input type.