Trait product_os_async_executor::sleep::Sleep
source · pub trait Sleep<D, T>: Future {
// Required methods
fn sleep(period: D) -> Self;
fn sleep_until(time: T) -> Self;
}
Required Methods§
fn sleep(period: D) -> Self
fn sleep_until(time: T) -> Self
Object Safety§
This trait is not object safe.