Trait aws_smithy_async::rt::sleep::AsyncSleep
source · pub trait AsyncSleep: Debug + Send + Sync {
// Required method
fn sleep(&self, duration: Duration) -> Sleep ⓘ;
}
Expand description
Async trait with a sleep
function.
Required Methods§
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.
Implementations on Foreign Types§
source§impl<T> AsyncSleep for Box<T>where
T: AsyncSleep + ?Sized,
impl<T> AsyncSleep for Box<T>where
T: AsyncSleep + ?Sized,
source§impl<T> AsyncSleep for Arc<T>where
T: AsyncSleep + ?Sized,
impl<T> AsyncSleep for Arc<T>where
T: AsyncSleep + ?Sized,
Implementors§
impl AsyncSleep for ControlledSleep
Available on crate feature
test-util
only.impl AsyncSleep for InstantSleep
Available on crate feature
test-util
only.impl AsyncSleep for TickAdvanceSleep
Available on crate feature
test-util
only.impl AsyncSleep for TokioSleep
Available on crate feature
rt-tokio
only.