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 Service.

Switch Service.

Trait Implementations

impl Default for SwitchInner
[src]

Returns the "default value" for a type. Read more

impl HapAccessory for SwitchInner
[src]

Returns the ID of an Accessory.

Sets the ID of an Accessory.

Returns references to all Services of an Accessory.

Returns mutable references to the Services of an Accessory.

Returns a mutable reference to the Accessory Information Service of an Accessory.

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 !Sync for SwitchInner