[][src]Struct linux_embedded_hal::SysTimer

pub struct SysTimer { /* fields omitted */ }

A periodic timer based on std::time::Instant, which is a monotonically nondecreasing clock.

Implementations

impl SysTimer[src]

pub fn new() -> SysTimer[src]

Create a new timer instance.

The duration will be initialized to 0, so make sure to call start with your desired timer duration before calling wait.

Trait Implementations

impl CountDown for SysTimer[src]

type Error = Infallible

An enumeration of CountDown errors. Read more

type Time = Duration

The unit of time used by this timer

impl Periodic for SysTimer[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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> 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.