pub enum RetryAfter {
Wait(Duration),
Stop,
}Expand description
The server-directed decision for one retry.
Variants§
Wait(Duration)
Wait this long, then retry.
Stop
Do not retry: the response that asked for the wait ends the call.
Trait Implementations§
Source§impl Clone for RetryAfter
impl Clone for RetryAfter
impl Copy for RetryAfter
Source§impl Debug for RetryAfter
impl Debug for RetryAfter
impl Eq for RetryAfter
Source§impl PartialEq for RetryAfter
impl PartialEq for RetryAfter
impl StructuralPartialEq for RetryAfter
Auto Trait Implementations§
impl Forget for RetryAfter
impl Freeze for RetryAfter
impl Move for RetryAfter
impl RefUnwindSafe for RetryAfter
impl Send for RetryAfter
impl Sync for RetryAfter
impl Unpin for RetryAfter
impl UnsafeUnpin for RetryAfter
impl UnwindSafe for RetryAfter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.