Struct async_nats::client::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
pub fn kind(&self) -> RequestErrorKind
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
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<RequestError> for DirectGetError
impl From<RequestError> for DirectGetError
source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
source§impl From<RequestError> for RequestError
impl From<RequestError> for RequestError
source§fn from(error: RequestError) -> Self
fn from(error: RequestError) -> 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.
Auto Trait Implementations§
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
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