Skip to main content

SensorAccess

Trait SensorAccess 

Source
pub trait SensorAccess: Sealed {
    // Required method
    fn sensor(&self) -> &'static dyn Sensor;
}
Available on crate feature sensors only.
Expand description

Provides access to the sensor driver instance. For driver implementors only.

Required Methods§

Source

fn sensor(&self) -> &'static dyn Sensor

Returns the sensor driver instance that produced these samples. For driver implementors only.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§