pub trait AsyncSleep: Debug + Send + Sync {
fn sleep(&self, duration: Duration) -> SleepⓘNotable traits for Sleepimpl Future for Sleep type Output = ();
;
}
Expand description
Async trait with a sleep
function.
pub trait AsyncSleep: Debug + Send + Sync {
fn sleep(&self, duration: Duration) -> SleepⓘNotable traits for Sleepimpl Future for Sleep type Output = ();
;
}
Async trait with a sleep
function.