Struct hap::accessory::lightbulb::LightbulbInner [−][src]
pub struct LightbulbInner { pub accessory_information: AccessoryInformation, pub lightbulb: Lightbulb, // some fields omitted }
Inner type of the Lightbulb Accessory.
Fields
accessory_information: AccessoryInformation
Accessory Information Service.
lightbulb: Lightbulb
Lightbulb Service.
Trait Implementations
impl Default for LightbulbInner
[src]
impl Default for LightbulbInner
fn default() -> LightbulbInner
[src]
fn default() -> LightbulbInner
Returns the "default value" for a type. Read more
impl HapAccessory for LightbulbInner
[src]
impl HapAccessory for LightbulbInner
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 LightbulbInner
impl !Send for LightbulbInner
impl !Sync for LightbulbInner
impl !Sync for LightbulbInner