aws_sdk_cloudwatchlogs::config

Trait 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§

Source

fn sleep(&self, duration: Duration) -> Sleep

Returns a future that sleeps for the given duration of time.

Trait Implementations§

Source§

impl AsRef<dyn AsyncSleep> for SharedAsyncSleep

Source§

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,

Source§

fn sleep(&self, duration: Duration) -> Sleep

Source§

impl<T> AsyncSleep for Arc<T>
where T: AsyncSleep + ?Sized,

Source§

fn sleep(&self, duration: Duration) -> Sleep

Implementors§

Source§

impl AsyncSleep for TokioSleep

Available on crate feature rt-tokio only.
Source§

impl AsyncSleep for SharedAsyncSleep