pub struct TimerState { /* fields omitted */ }
Expand description
Returns whether notification has been fired.
Namely it checks whether Waker
is registered
with TimerState
or not. It is not intended for user
to call is_done
before register
Resets state, allowing to wake once again.
Informs that timer is cancel, therefore no further callbacks to be passed
Registers Callback
with the state.
This callback is used replaces previous one, if any.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.