Struct crs_bind::rtos::Loop[][src]

pub struct Loop { /* fields omitted */ }

Provides a constant-period looping construct.

Implementations

impl Loop[src]

pub fn new(delta: Duration) -> Self[src]

Creates a new loop object with a given period.

pub fn delay(&mut self)[src]

Delays until the next loop cycle.

pub fn select(&mut self) -> impl Selectable + '_[src]

A Selectable event which occurs at the next loop cycle.

Auto Trait Implementations

impl Send for Loop

impl Sync for Loop

impl Unpin for Loop

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.