pub trait Sensor {
type Reading;
// Required method
async fn read(&mut self) -> Result<Self::Reading>;
}Expand description
A source of typed readings, such as a thermometer, GPS receiver, or lidar.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".