pub struct Timer { /* private fields */ }Expand description
A single re-armable timer slot in a worker’s heap.
Arm with Self::set and poll from this worker’s thread.
Created by crate::Handle::timer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Timer
impl !Send for Timer
impl !Sync for Timer
impl !UnwindSafe for Timer
impl Freeze for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more