pub struct FetchFailure {
pub status: Option<u16>,
pub retry_after_us: u64,
}Expand description
A fetch that produced no usable body.
Fields§
§status: Option<u16>The HTTP status when the server answered with a non-success one; None
for a transport error or a timeout.
retry_after_us: u64The wait the server asked for with Retry-After (RFC 9110 §10.2.3), in
microseconds; 0 when it asked for none. The retry waits at least this
long, never less than the configured backoff.
Trait Implementations§
Source§impl Clone for FetchFailure
impl Clone for FetchFailure
impl Copy for FetchFailure
Source§impl Debug for FetchFailure
impl Debug for FetchFailure
Source§impl Default for FetchFailure
impl Default for FetchFailure
impl Eq for FetchFailure
Source§impl PartialEq for FetchFailure
impl PartialEq for FetchFailure
impl StructuralPartialEq for FetchFailure
Auto Trait Implementations§
impl Forget for FetchFailure
impl Freeze for FetchFailure
impl Move for FetchFailure
impl RefUnwindSafe for FetchFailure
impl Send for FetchFailure
impl Sync for FetchFailure
impl Unpin for FetchFailure
impl UnsafeUnpin for FetchFailure
impl UnwindSafe for FetchFailure
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