Struct freertos_rs::DurationImpl
[−]
[src]
pub struct DurationImpl<T> { /* fields omitted */ }
Time unit used by FreeRTOS, passed to the scheduler as ticks.
Methods
impl<T> DurationImpl<T> where
T: FreeRtosTimeUnits + Copy,
[src]
T: FreeRtosTimeUnits + Copy,
fn ms(milliseconds: u32) -> Self
[src]
Milliseconds constructor
fn ticks(ticks: u32) -> Self
[src]
fn infinite() -> Self
[src]
An infinite duration
fn zero() -> Self
[src]
A duration of zero, for non-blocking calls
fn eps() -> Self
[src]
Smallest unit of measurement, one tick
fn to_ms(&self) -> u32
[src]
Trait Implementations
impl<T: Debug> Debug for DurationImpl<T>
[src]
impl<T: Copy> Copy for DurationImpl<T>
[src]
impl<T: Clone> Clone for DurationImpl<T>
[src]
fn clone(&self) -> DurationImpl<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for DurationImpl<T>
[src]
fn eq(&self, __arg_0: &DurationImpl<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DurationImpl<T>) -> bool
[src]
This method tests for !=
.
impl<T: Eq> Eq for DurationImpl<T>
[src]
impl<T> DurationTicks for DurationImpl<T> where
T: FreeRtosTimeUnits + Copy,
[src]
T: FreeRtosTimeUnits + Copy,