Trait rtic_time::monotonic::TimerQueueBasedInstant

source ·
pub trait TimerQueueBasedInstant: Ord + Copy {
    type Ticks;

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

An instant that can be used in TimerQueueBasedMonotonic.

Required Associated Types§

source

type Ticks

The internal type of the instant

Required Methods§

source

fn from_ticks(ticks: Self::Ticks) -> Self

Convert from ticks to the instant

source

fn ticks(self) -> Self::Ticks

Convert the instant to ticks

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<const NOM: u32, const DENOM: u32> TimerQueueBasedInstant for Instant<u32, NOM, DENOM>

§

type Ticks = u32

source§

fn from_ticks(ticks: Self::Ticks) -> Self

source§

fn ticks(self) -> Self::Ticks

source§

impl<const NOM: u32, const DENOM: u32> TimerQueueBasedInstant for Instant<u64, NOM, DENOM>

§

type Ticks = u64

source§

fn from_ticks(ticks: Self::Ticks) -> Self

source§

fn ticks(self) -> Self::Ticks

Implementors§