Trait rtic_time::monotonic::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

Object Safety§

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§