Struct rppal::hal::Timer[][src]

pub struct Timer { /* fields omitted */ }

Implements the embedded-hal CountDown trait.

Implementations

impl Timer[src]

pub fn new() -> Self[src]

Constructs a new Timer.

Trait Implementations

impl Clone for Timer[src]

impl Copy for Timer[src]

impl CountDown for Timer[src]

type Time = Duration

The unit of time used by this timer

fn start<T>(&mut self, timeout: T) where
    T: Into<Self::Time>, 
[src]

Starts the timer with a timeout.

fn wait(&mut self) -> Result<(), Void>[src]

Returns Ok if the timer has wrapped.

impl Debug for Timer[src]

impl Default for Timer[src]

Auto Trait Implementations

impl RefUnwindSafe for Timer[src]

impl Send for Timer[src]

impl Sync for Timer[src]

impl Unpin for Timer[src]

impl UnwindSafe for Timer[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.