Struct r3_portkit::tickful::TickfulOptions
source · pub struct TickfulOptions {
pub hw_freq_num: u64,
pub hw_freq_denom: u64,
pub hw_tick_period: u32,
}Expand description
The parameters of the tickful timing algorithm.
It can be passed to TickfulCfg::new to construct TickfulCfg.
Fields§
§hw_freq_num: u64The numerator of the hardware timer frequency.
hw_freq_denom: u64The denominator of the hardware timer frequency.
hw_tick_period: u32The tick period measured in hardware timer cycles.
TickfulStateTrait::tick should be called in this period.
Trait Implementations§
source§impl Clone for TickfulOptions
impl Clone for TickfulOptions
source§fn clone(&self) -> TickfulOptions
fn clone(&self) -> TickfulOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TickfulOptions
impl Debug for TickfulOptions
source§impl PartialEq<TickfulOptions> for TickfulOptions
impl PartialEq<TickfulOptions> for TickfulOptions
source§fn eq(&self, other: &TickfulOptions) -> bool
fn eq(&self, other: &TickfulOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.