pub struct TimerHandle<C = TimerCallbackFn> { /* private fields */ }Expand description
A handle to a timer stored in a node
This is a lightweight handle that references a timer by index.
The actual timer state is stored in the ConnectedNode.
§Type Parameters
C: Callback type marker (function pointer or boxed)
Implementations§
Trait Implementations§
Source§impl<C: Clone> Clone for TimerHandle<C>
impl<C: Clone> Clone for TimerHandle<C>
Source§fn clone(&self) -> TimerHandle<C>
fn clone(&self) -> TimerHandle<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for TimerHandle<C>
impl<C: Debug> Debug for TimerHandle<C>
impl<C: Copy> Copy for TimerHandle<C>
Auto Trait Implementations§
impl<C> Freeze for TimerHandle<C>
impl<C> RefUnwindSafe for TimerHandle<C>where
C: RefUnwindSafe,
impl<C> Send for TimerHandle<C>where
C: Send,
impl<C> Sync for TimerHandle<C>where
C: Sync,
impl<C> Unpin for TimerHandle<C>where
C: Unpin,
impl<C> UnsafeUnpin for TimerHandle<C>
impl<C> UnwindSafe for TimerHandle<C>where
C: UnwindSafe,
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