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