pub trait Sensor: Module {
// Required methods
fn attach(&mut self, events: ActorRef<ControlEvent>);
fn start(&mut self);
}Expand description
External input that produces ControlEvents and dispatches them
via a shared ActorRef.
Sensor extends Module so every sensor is also a rack module.
Required Methods§
Sourcefn attach(&mut self, events: ActorRef<ControlEvent>)
fn attach(&mut self, events: ActorRef<ControlEvent>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".