Struct hap::service::leak_sensor::LeakSensorInner [−][src]
pub struct LeakSensorInner { pub leak_detected: LeakDetected, pub status_active: Option<StatusActive>, pub status_fault: Option<StatusFault>, pub status_tampered: Option<StatusTampered>, pub status_low_battery: Option<StatusLowBattery>, pub name: Option<Name>, // some fields omitted }
Inner type of the Leak Sensor Service.
Fields
leak_detected: LeakDetected
Leak Detected Characteristic.
status_active: Option<StatusActive>
Status Active Characteristic.
status_fault: Option<StatusFault>
Status Fault Characteristic.
status_tampered: Option<StatusTampered>
Status Tampered Characteristic.
status_low_battery: Option<StatusLowBattery>
Status Low Battery Characteristic.
name: Option<Name>
Name Characteristic.
Trait Implementations
impl Default for LeakSensorInner
[src]
impl Default for LeakSensorInner
fn default() -> LeakSensorInner
[src]
fn default() -> LeakSensorInner
Returns the "default value" for a type. Read more
impl HapService for LeakSensorInner
[src]
impl HapService for LeakSensorInner
fn get_id(&self) -> u64
[src]
fn get_id(&self) -> u64
Returns the ID of a Service.
fn set_id(&mut self, id: u64)
[src]
fn set_id(&mut self, id: u64)
Sets the ID of a Service.
fn get_type(&self) -> HapType
[src]
fn get_type(&self) -> HapType
Returns the HapType
of a Service.
Returns the hidden value of a Service.
Sets the hidden value of a Service.
fn get_primary(&self) -> bool
[src]
fn get_primary(&self) -> bool
Returns the primary value of a Service.
fn set_primary(&mut self, primary: bool)
[src]
fn set_primary(&mut self, primary: bool)
Sets the primary value of a Service.
fn get_characteristics(&self) -> Vec<&HapCharacteristic>
[src]
fn get_characteristics(&self) -> Vec<&HapCharacteristic>
Returns references to the Characteristics of a Service.
fn get_mut_characteristics(&mut self) -> Vec<&mut HapCharacteristic>
[src]
fn get_mut_characteristics(&mut self) -> Vec<&mut HapCharacteristic>
Returns mutable references to the Characteristics of a Service.
Auto Trait Implementations
impl !Send for LeakSensorInner
impl !Send for LeakSensorInner
impl !Sync for LeakSensorInner
impl !Sync for LeakSensorInner