pub struct RetryOn {
pub retry_429: bool,
pub retry_5xx: bool,
pub retry_transport: bool,
}Fields§
§retry_429: bool§retry_5xx: bool§retry_transport: boolImplementations§
Source§impl RetryOn
impl RetryOn
pub fn should_retry( &self, err: &TransportError, attempt: u64, max_attempts: u64, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetryOn
impl RefUnwindSafe for RetryOn
impl Send for RetryOn
impl Sync for RetryOn
impl Unpin for RetryOn
impl UnsafeUnpin for RetryOn
impl UnwindSafe for RetryOn
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