Trait Signals

Source
pub trait Signals {
    // Required method
    fn signal(&self) -> Signal;

    // Provided methods
    fn wait(&self) -> Result<(), WaitError> { ... }
    fn wait_timeout_ms(&self, ms: u32) -> Result<(), TimeoutError> { ... }
}
Expand description

allows an object to assert a wait signal

Required Methods§

Source

fn signal(&self) -> Signal

Get a signal from a object

Provided Methods§

Source

fn wait(&self) -> Result<(), WaitError>

Block the current thread until the object assets a pulse.

Source

fn wait_timeout_ms(&self, ms: u32) -> Result<(), TimeoutError>

Block the current thread until the object assets a pulse. Or until the timeout has been asserted.

Implementors§