pub struct TimerState { /* private fields */ }
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.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.