Struct async_nats::RequestError
source · pub struct RequestError { /* private fields */ }
Expand description
Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.
Implementations§
source§impl RequestError
impl RequestError
sourcepub fn kind(&self) -> RequestErrorKind
pub fn kind(&self) -> RequestErrorKind
Returns the RequestErrorKind enum, allowing iterating over all error variants.
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
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.