pub trait DataSource {
type Data: Clone + 'static;
type Error;
// Required method
fn read(&self) -> Result<Self::Data, Self::Error>;
}Expand description
Describes an object which is a source of data, such as a sensor.
Used to facilitate broadcasting readings via IntoBroadcast.