pub struct TicklessOptions {
    pub hw_freq_num: u64,
    pub hw_freq_denom: u64,
    pub hw_headroom_ticks: u32,
    pub force_full_hw_period: bool,
    pub resettable: bool,
}
Expand description

The parameters of the tickless timing algorithm.

It can be passed to TicklessCfg::new to construct TicklessCfg.

Fields§

§hw_freq_num: u64

The numerator of the hardware timer frequency.

§hw_freq_denom: u64

The denominator of the hardware timer frequency.

§hw_headroom_ticks: u32

The headroom for interrupt latency, measured in hardware timer cycles.

§force_full_hw_period: bool

Forces hw_max_tick_count to be u32::MAX. This might require the use of a less-efficient algorithm.

§resettable: bool

Allow the use of TicklessStateTrait::reset.

Trait Implementations§

source§

impl Clone for TicklessOptions

source§

fn clone(&self) -> TicklessOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TicklessOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<TicklessOptions> for TicklessOptions

source§

fn eq(&self, other: &TicklessOptions) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for TicklessOptions

source§

impl Eq for TicklessOptions

source§

impl StructuralEq for TicklessOptions

source§

impl StructuralPartialEq for TicklessOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.