Trait asi_core0::Sensor
[−]
[src]
pub trait Sensor<T> { fn next(&mut self); fn try_receive(&mut self) -> Option<Result<T, Box<Error>>>; }
Implemented by sensors.
Required Methods
fn next(&mut self)
Call for next input.
fn try_receive(&mut self) -> Option<Result<T, Box<Error>>>
Try receive data, returns None
if there is nothing to receive yet.