Struct async_timer::state::TimerState[][src]

pub struct TimerState { /* fields omitted */ }
Expand description

Timer’s state

Implementations

Initializes state.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.