Trait r3_portkit::tickful::TickfulStateTrait
source · 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§
sourcefn tick(&mut self, cfg: &TickfulCfg)
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.
sourcefn tick_count(&self) -> u32
fn tick_count(&self) -> u32
Get the OS tick count in range 0..=u32::MAX.