[][src]Struct freertos_rs::DurationImpl

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]

pub fn ms(milliseconds: u32) -> Self[src]

Milliseconds constructor

pub fn ticks(ticks: u32) -> Self[src]

pub fn infinite() -> Self[src]

An infinite duration

pub fn zero() -> Self[src]

A duration of zero, for non-blocking calls

pub fn eps() -> Self[src]

Smallest unit of measurement, one tick

pub fn to_ms(&self) -> u32[src]

Trait Implementations

impl<T> DurationTicks for DurationImpl<T> where
    T: FreeRtosTimeUnits + Copy
[src]

impl<T: PartialEq> PartialEq<DurationImpl<T>> for DurationImpl<T>[src]

impl<T: Eq> Eq for DurationImpl<T>[src]

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_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for DurationImpl<T> where
    T: Send

impl<T> Sync for DurationImpl<T> where
    T: Sync

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.