pub struct TimerOps;Expand description
TimerOps
Implementations§
Source§impl TimerOps
impl TimerOps
Sourcepub fn set(
delay: Duration,
label: impl Into<String>,
task: impl Future<Output = ()> + 'static,
) -> TimerId
pub fn set( delay: Duration, label: impl Into<String>, task: impl Future<Output = ()> + 'static, ) -> TimerId
Schedules a one-shot timer. The task is a single Future, consumed exactly once.
Auto Trait Implementations§
impl Freeze for TimerOps
impl RefUnwindSafe for TimerOps
impl Send for TimerOps
impl Sync for TimerOps
impl Unpin for TimerOps
impl UnwindSafe for TimerOps
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more