pub struct DefaultSleeper;Expand description
The default Sleeper implementation, backed by tokio::time::sleep.
This type is available when the tokio feature is enabled or while running
tests.
Trait Implementations§
Source§impl Clone for DefaultSleeper
impl Clone for DefaultSleeper
Source§fn clone(&self) -> DefaultSleeper
fn clone(&self) -> DefaultSleeper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DefaultSleeper
Source§impl Debug for DefaultSleeper
impl Debug for DefaultSleeper
Auto Trait Implementations§
impl Freeze for DefaultSleeper
impl RefUnwindSafe for DefaultSleeper
impl Send for DefaultSleeper
impl Sync for DefaultSleeper
impl Unpin for DefaultSleeper
impl UnsafeUnpin for DefaultSleeper
impl UnwindSafe for DefaultSleeper
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