pub enum Kind {
Connection(String),
ResponseStatus(ResponseStatusKind, Option<ErrorResponseData>),
DataDeserialization,
Other(String),
}Expand description
Identifies the cause of failure.
Variants§
Connection(String)
Inability to establish a connection.
ResponseStatus(ResponseStatusKind, Option<ErrorResponseData>)
Negative response from the server.
DataDeserialization
The response body for a correctly performed task cannot be deserialized.
Other(String)
Unknown cause. Check source method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for 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