pub trait TickfulStateTrait: Init {
    // Required methods
    fn tick(&mut self, cfg: &TickfulCfg);
    fn tick_count(&self) -> u32;
}
Expand description

Operations implemented by all valid instantiations of TickfulState.

Required Methods§

source

fn tick(&mut self, cfg: &TickfulCfg)

Advance the time by one tick period (TickfulOptions::hw_tick_period).

cfg must be the instance of TickfulCfg that was passed to TickfulState to derive Self.

source

fn tick_count(&self) -> u32

Get the OS tick count in range 0..=u32::MAX.

Implementors§