pub struct RetryHandle { /* private fields */ }Expand description
Handle passed to the on_retry callback.
Implementations§
Source§impl RetryHandle
impl RetryHandle
pub fn new( total_tries: u64, retries: u64, delay: Duration, error: Error, ) -> Self
Sourcepub fn total_tries(&self) -> u64
pub fn total_tries(&self) -> u64
Returns the total number of tries so far to download this file.
Auto Trait Implementations§
impl Freeze for RetryHandle
impl !RefUnwindSafe for RetryHandle
impl Send for RetryHandle
impl Sync for RetryHandle
impl Unpin for RetryHandle
impl !UnwindSafe for RetryHandle
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