Trait rtic_monotonics::nrf::timer::prelude::ExtU64Ceil

source ·
pub trait ExtU64Ceil {
    // Required methods
    fn nanos_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u64, NOM, DENOM>;
    fn micros_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u64, NOM, DENOM>;
    fn millis_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u64, NOM, DENOM>;
    fn secs_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u64, NOM, DENOM>;
    fn minutes_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u64, NOM, DENOM>;
    fn hours_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u64, NOM, DENOM>;
}
Expand description

Extension trait for simple short-hands for u64 Durations (ceil rounded)

Required Methods§

source

fn nanos_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Shorthand for creating a duration which represents nanoseconds.

source

fn micros_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Shorthand for creating a duration which represents microseconds.

source

fn millis_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Shorthand for creating a duration which represents milliseconds.

source

fn secs_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Shorthand for creating a duration which represents seconds.

source

fn minutes_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Shorthand for creating a duration which represents minutes.

source

fn hours_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Shorthand for creating a duration which represents hours.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ExtU64Ceil for u64

source§

fn nanos_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

source§

fn micros_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

source§

fn millis_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

source§

fn secs_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

source§

fn minutes_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

source§

fn hours_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>

Implementors§