Struct hap::accessory::carbon_monoxide_sensor::CarbonMonoxideSensorInner [−][src]
pub struct CarbonMonoxideSensorInner { pub accessory_information: AccessoryInformation, pub carbon_monoxide_sensor: CarbonMonoxideSensor, // some fields omitted }
Inner type of the Carbon Monoxide Sensor Accessory.
Fields
accessory_information: AccessoryInformation
Accessory Information Service.
carbon_monoxide_sensor: CarbonMonoxideSensor
Carbon Monoxide Sensor Service.
Trait Implementations
impl Default for CarbonMonoxideSensorInner
[src]
impl Default for CarbonMonoxideSensorInner
fn default() -> CarbonMonoxideSensorInner
[src]
fn default() -> CarbonMonoxideSensorInner
Returns the "default value" for a type. Read more
impl HapAccessory for CarbonMonoxideSensorInner
[src]
impl HapAccessory for CarbonMonoxideSensorInner
fn get_id(&self) -> u64
[src]
fn get_id(&self) -> u64
Returns the ID of an Accessory.
fn set_id(&mut self, id: u64)
[src]
fn set_id(&mut self, id: u64)
Sets the ID of an Accessory.
fn get_services(&self) -> Vec<&HapAccessoryService>
[src]
fn get_services(&self) -> Vec<&HapAccessoryService>
Returns references to all Services of an Accessory.
fn get_mut_services(&mut self) -> Vec<&mut HapAccessoryService>
[src]
fn get_mut_services(&mut self) -> Vec<&mut HapAccessoryService>
Returns mutable references to the Services of an Accessory.
fn get_mut_information(&mut self) -> &mut AccessoryInformation
[src]
fn get_mut_information(&mut self) -> &mut AccessoryInformation
Returns a mutable reference to the Accessory Information Service of an Accessory.
fn init_iids(
&mut self,
accessory_id: u64,
event_emitter: Rc<RefCell<Emitter>>
) -> Result<(), Error>
[src]
fn init_iids(
&mut self,
accessory_id: u64,
event_emitter: Rc<RefCell<Emitter>>
) -> Result<(), Error>
Initializes the Service and Characteristic instance IDs of an Accessory. Service and Characteristic instance IDs, "iid", are assigned from the same number pool that is unique within each Accessory object. For example, if the first Service object has an instance ID of "1" then no other Service or Characteristic objects can have an instance ID of "1" within the parent Accessory object. Read more
Auto Trait Implementations
impl !Send for CarbonMonoxideSensorInner
impl !Send for CarbonMonoxideSensorInner
impl !Sync for CarbonMonoxideSensorInner
impl !Sync for CarbonMonoxideSensorInner