pub struct SensorDescriptor {
pub id: SensorId,
pub key: &'static str,
pub physical_fact: &'static str,
pub source: &'static str,
pub max_rate_hz: f64,
pub perturbation: Perturbation,
pub uncertainty: Uncertainty,
pub requires_privilege: bool,
}Expand description
Everything a sensor must declare about itself.
Fields§
§id: SensorId§key: &'static strStable short name, e.g. frequency.
physical_fact: &'static strThe physical quantity being approximated, in one sentence.
source: &'static strThe kernel interface or instruction the value comes from.
max_rate_hz: f64Above this rate, sampling returns no new information.
perturbation: Perturbation§uncertainty: Uncertainty§requires_privilege: boolTrue when the sensor needs privileges an ordinary user may not have, and will therefore be absent rather than wrong.
Trait Implementations§
Source§impl Clone for SensorDescriptor
impl Clone for SensorDescriptor
Source§impl Debug for SensorDescriptor
impl Debug for SensorDescriptor
Source§impl PartialEq for SensorDescriptor
impl PartialEq for SensorDescriptor
impl StructuralPartialEq for SensorDescriptor
Auto Trait Implementations§
impl Freeze for SensorDescriptor
impl RefUnwindSafe for SensorDescriptor
impl Send for SensorDescriptor
impl Sync for SensorDescriptor
impl Unpin for SensorDescriptor
impl UnsafeUnpin for SensorDescriptor
impl UnwindSafe for SensorDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more