rtic_time::monotonic

Trait TimerQueueBasedDuration

Source
pub trait TimerQueueBasedDuration: Copy {
    type Ticks;

    // Required method
    fn ticks(self) -> Self::Ticks;
}
Expand description

A duration that can be used in TimerQueueBasedMonotonic.

Required Associated Types§

Source

type Ticks

The internal type of the duration

Required Methods§

Source

fn ticks(self) -> Self::Ticks

Convert the duration to ticks

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<const NOM: u32, const DENOM: u32> TimerQueueBasedDuration for Duration<u32, NOM, DENOM>

Source§

type Ticks = u32

Source§

fn ticks(self) -> Self::Ticks

Source§

impl<const NOM: u32, const DENOM: u32> TimerQueueBasedDuration for Duration<u64, NOM, DENOM>

Source§

type Ticks = u64

Source§

fn ticks(self) -> Self::Ticks

Implementors§