[−][src]Struct freertos_rs::DurationImpl
Time unit used by FreeRTOS, passed to the scheduler as ticks.
Methods
impl<T> DurationImpl<T> where
T: FreeRtosTimeUnits + Copy,
[src]
T: FreeRtosTimeUnits + Copy,
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]
T: FreeRtosTimeUnits + Copy,
impl<T: PartialEq> PartialEq<DurationImpl<T>> for DurationImpl<T>
[src]
fn eq(&self, other: &DurationImpl<T>) -> bool
[src]
fn ne(&self, other: &DurationImpl<T>) -> bool
[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(&self) -> 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,
T: Send,
impl<T> Sync for DurationImpl<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.