pub struct Sensor {
pub id: String,
pub name: String,
pub state: SensorState,
pub sensor_type: SensorType,
pub is_bypassed: bool,
pub low_battery: bool,
pub malfunction: bool,
pub attributes: SensorAttributes,
}Expand description
A sensor device.
Fields§
§id: String§name: String§state: SensorState§sensor_type: SensorType§is_bypassed: bool§low_battery: bool§malfunction: bool§attributes: SensorAttributesImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sensor
impl RefUnwindSafe for Sensor
impl Send for Sensor
impl Sync for Sensor
impl Unpin for Sensor
impl UnsafeUnpin for Sensor
impl UnwindSafe for Sensor
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