pub struct TimeoutSpec {
    pub retries: u8,
    pub retry_after: Duration,
    pub backoff: Duration,
    pub deadline: Duration,
}Fields§
§retries: u8How many times to retry on failure (timeout or client error)
retry_after: DurationHow long to wait for a single response before retrying
backoff: DurationWaiting between retries
deadline: DurationTotal time for completion before considering failure
Trait Implementations§
Source§impl Clone for TimeoutSpec
 
impl Clone for TimeoutSpec
Source§fn clone(&self) -> TimeoutSpec
 
fn clone(&self) -> TimeoutSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TimeoutSpec
 
impl Debug for TimeoutSpec
Source§impl Default for TimeoutSpec
 
impl Default for TimeoutSpec
impl Copy for TimeoutSpec
Auto Trait Implementations§
impl Freeze for TimeoutSpec
impl RefUnwindSafe for TimeoutSpec
impl Send for TimeoutSpec
impl Sync for TimeoutSpec
impl Unpin for TimeoutSpec
impl UnwindSafe for TimeoutSpec
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