pub struct InstantSleeper;Expand description
Mock sleeper that returns immediately without waiting.
Useful for testing retry logic without actual delays.
Trait Implementations§
Source§impl Clone for InstantSleeper
impl Clone for InstantSleeper
Source§fn clone(&self) -> InstantSleeper
fn clone(&self) -> InstantSleeper
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 InstantSleeper
impl Debug for InstantSleeper
Source§impl Default for InstantSleeper
impl Default for InstantSleeper
Source§fn default() -> InstantSleeper
fn default() -> InstantSleeper
Returns the “default value” for a type. Read more
Source§impl Sleeper for InstantSleeper
impl Sleeper for InstantSleeper
impl Copy for InstantSleeper
Auto Trait Implementations§
impl Freeze for InstantSleeper
impl RefUnwindSafe for InstantSleeper
impl Send for InstantSleeper
impl Sync for InstantSleeper
impl Unpin for InstantSleeper
impl UnwindSafe for InstantSleeper
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