#[non_exhaustive]pub enum Failure {
Status(u16),
Transport,
Timeout,
TooLarge,
}Expand description
How a fetch failed, as the caller observed it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Status(u16)
The server answered with this HTTP status (an error status, or a success status the caller could not use).
Transport
Connection refused, reset, or closed before the response completed.
Timeout
No (complete) response within the caller’s deadline.
TooLarge
The body exceeded the caller’s size cap.
Trait Implementations§
impl Copy for Failure
impl Eq for Failure
impl StructuralPartialEq for Failure
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