pub struct Fixed { /* private fields */ }Expand description
Fixed delay between retries.
Every retry attempt waits the same amount of time.
§Example
use std::time::Duration;
use retry::delay::{Delay, Fixed};
let mut d = Fixed::new(Duration::from_secs(2));
assert_eq!(d.next_delay(), Duration::from_secs(2));
assert_eq!(d.next_delay(), Duration::from_secs(2));Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fixed
impl RefUnwindSafe for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnsafeUnpin for Fixed
impl UnwindSafe for Fixed
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