Struct luftpost::state::SensorState
[−]
[src]
pub struct SensorState { pub sensor_id: SensorId, pub alarm_state: AlarmState, }
Fields
sensor_id: SensorId
alarm_state: AlarmState
Methods
impl SensorState
[src]
fn load<P: AsRef<Path>>(
sensor_id: &SensorId,
state_dir: P
) -> Result<SensorState>
sensor_id: &SensorId,
state_dir: P
) -> Result<SensorState>
fn save<P: AsRef<Path>>(&self, state_dir: P) -> Result<()>
Trait Implementations
impl Debug for SensorState
[src]
impl PartialEq for SensorState
[src]
fn eq(&self, __arg_0: &SensorState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SensorState) -> bool
This method tests for !=
.