Enum freertos_rs::Duration
[−]
[src]
pub enum Duration { Ticks(u32), Milliseconds(u32), Infinite, }
Time unit used by FreeRTOS, passed to the scheduler as ticks.
Variants
Ticks(u32)
Milliseconds(u32)
Infinite
Methods
impl Duration
[src]
fn ms(milliseconds: u32) -> Duration
Milliseconds constructor
fn infinite() -> Duration
An infinite duration
fn to_ticks(&self) -> u32
Convert to ticks, the internal time measurement unit of FreeRTOS
Trait Implementations
impl Debug for Duration
[src]
impl Copy for Duration
[src]
impl Clone for Duration
[src]
fn clone(&self) -> Duration
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more