pub enum Failure {
Status {
status: u16,
body: String,
},
Connection(String),
Aborted,
RetryDelay {
delay: String,
status: u16,
body: String,
},
}Expand description
Why a request produced no usable response.
Variants§
Status
The server answered with a non-success status.
Connection(String)
No response: connection, TLS or protocol failure.
Aborted
Cancelled by the caller.
RetryDelay
A status failure whose server asked to retry later than the limit allows.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Failure
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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