Trait rtic_monotonics::nrf::rtc::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§
sourcefn nanos_at_least<const NOM: u32, const DENOM: u32>(
self,
) -> Duration<u64, NOM, DENOM>
fn nanos_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u64, NOM, DENOM>
Shorthand for creating a duration which represents nanoseconds.
sourcefn micros_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>
Shorthand for creating a duration which represents microseconds.
sourcefn millis_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>
Shorthand for creating a duration which represents milliseconds.
sourcefn secs_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>
Shorthand for creating a duration which represents seconds.
Object Safety§
This trait is not object safe.