[−][src]Struct async_timer::state::TimerState
Timer's state
Methods
impl TimerState[src]
pub const fn new() -> Self[src]
Initializes state.
pub fn is_done(&self) -> bool[src]
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
pub fn register(&self, waker: &Waker)[src]
Registers Waker with state
pub fn wake(&self)[src]
Notifies underlying Waker
After that Waker is no longer registered with TimerState
pub fn wake_by_ref(&self)[src]
Notifies underlying Waker without consuming it
Auto Trait Implementations
impl Send for TimerState
impl Sync for TimerState
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,