Trait vex_rt::rtos::Selectable[][src]

pub trait Selectable<T = ()>: Sized {
    fn poll(self) -> Result<T, Self>;
fn sleep(&self) -> GenericSleep; }
Expand description

Represents a future event which can be used with the select! macro.

Required methods

fn poll(self) -> Result<T, Self>[src]

Processes the event if it is ready, consuming the event object; otherwise, it provides a replacement event object.

fn sleep(&self) -> GenericSleep[src]

Gets the earliest time that the event could be ready.

Implementors