Trait SleepAsyncExt

Source
pub trait SleepAsyncExt {
    // Required method
    fn sleep_async(&self) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>;
}

Required Methods§

Source

fn sleep_async(&self) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>

Implementations on Foreign Types§

Source§

impl SleepAsyncExt for Duration

Source§

fn sleep_async(&self) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>

Implementors§