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§
Provided Methods§
Sourcefn wait(&self) -> Result<(), WaitError>
fn wait(&self) -> Result<(), WaitError>
Block the current thread until the object assets a pulse.
Sourcefn wait_timeout_ms(&self, ms: u32) -> Result<(), TimeoutError>
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.