Struct bonsaidb::keystorage::s3::aws_sdk_s3::config::SharedAsyncSleep
pub struct SharedAsyncSleep(_);
Expand description
Wrapper type for sharable AsyncSleep
Implementations§
pub fn new(sleep: impl AsyncSleep + 'static) -> SharedAsyncSleep
pub fn new(sleep: impl AsyncSleep + 'static) -> SharedAsyncSleep
Create a new SharedAsyncSleep
from AsyncSleep
Trait Implementations§
§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.
§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 more§fn from(sleep: Arc<dyn AsyncSleep>) -> SharedAsyncSleep
fn from(sleep: Arc<dyn AsyncSleep>) -> 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