pub(crate) struct Ticker<'a> {
pub(crate) state: &'a State,
pub(crate) sleeping: usize,
}Expand description
Runs task one by one.
Fields§
§state: &'a StateThe executor state.
sleeping: usizeSet to a non-zero sleeper ID when in sleeping state.
States a ticker can be in:
- Woken. 2a) Sleeping and unnotified. 2b) Sleeping and notified.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Ticker<'a>
impl<'a> RefUnwindSafe for Ticker<'a>
impl<'a> Send for Ticker<'a>
impl<'a> Sync for Ticker<'a>
impl<'a> Unpin for Ticker<'a>
impl<'a> UnwindSafe for Ticker<'a>
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