pub struct SharedAsyncSleep(_);Expand description
Wrapper type for sharable AsyncSleep
Implementations§
sourcepub fn new(sleep: impl AsyncSleep + 'static) -> SharedAsyncSleep
 
pub fn new(sleep: impl AsyncSleep + 'static) -> SharedAsyncSleep
Create a new SharedAsyncSleep from AsyncSleep
Trait Implementations§
source§fn as_ref(&self) -> &(dyn AsyncSleep + 'static)
 
fn as_ref(&self) -> &(dyn AsyncSleep + 'static)
Converts this type into a shared reference of the (usually inferred) input type.
source§fn clone(&self) -> SharedAsyncSleep
 
fn clone(&self) -> SharedAsyncSleep
Returns a copy 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§fn from(sleep: Arc<dyn AsyncSleep, Global>) -> SharedAsyncSleep
 
fn from(sleep: Arc<dyn AsyncSleep, Global>) -> SharedAsyncSleep
Converts to this type from the input type.
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more