pub struct Timer { /* private fields */ }Expand description
A timer made by Cx::after or Cx::interval. It is a Copy
handle, like a signal, so closures capture it without cloning. Calls on
a timer whose context is gone do nothing.
Implementations§
Trait Implementations§
impl Copy for Timer
impl Eq for Timer
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl !Send for Timer
impl !Sync for Timer
impl Forget for Timer
impl Freeze for Timer
impl Move for Timer
impl RefUnwindSafe for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe 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