#[non_exhaustive]pub enum RetryOnBurst {
Once,
Off,
}Expand description
What the SDK does on a 429 burst.
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.
Once
Wait exactly Retry-After (burst_wait when the header is missing), then retry once.
This retry does not count against max_retries.
Off
Return the error at once.
Trait Implementations§
Source§impl Clone for RetryOnBurst
impl Clone for RetryOnBurst
impl Copy for RetryOnBurst
Source§impl Debug for RetryOnBurst
impl Debug for RetryOnBurst
Source§impl Default for RetryOnBurst
impl Default for RetryOnBurst
impl Eq for RetryOnBurst
Source§impl PartialEq for RetryOnBurst
impl PartialEq for RetryOnBurst
impl StructuralPartialEq for RetryOnBurst
Auto Trait Implementations§
impl Forget for RetryOnBurst
impl Freeze for RetryOnBurst
impl Move for RetryOnBurst
impl RefUnwindSafe for RetryOnBurst
impl Send for RetryOnBurst
impl Sync for RetryOnBurst
impl Unpin for RetryOnBurst
impl UnsafeUnpin for RetryOnBurst
impl UnwindSafe for RetryOnBurst
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