pub enum Recovery {
Never,
Retryable,
Unprocessed,
Unavailable(Option<Duration>),
}Expand description
Whether and how a failed request may be retried (fetch/seatbelt RecoveryInfo idea).
Variants§
Never
Retryable
May have been processed; retry only idempotent requests.
Unprocessed
Guaranteed not processed (GOAWAY above last_stream_id, REFUSED_STREAM, connect failure): always safe.
Server asked us to back off, optionally for this long.
Trait Implementations§
impl Copy for Recovery
impl Eq for Recovery
impl StructuralPartialEq for Recovery
Auto Trait Implementations§
impl Forget for Recovery
impl Freeze for Recovery
impl Move for Recovery
impl RefUnwindSafe for Recovery
impl Send for Recovery
impl Sync for Recovery
impl Unpin for Recovery
impl UnsafeUnpin for Recovery
impl UnwindSafe for Recovery
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