pub struct AccessoryMapping {
pub accessory_type: HapAccessoryType,
pub characteristics: Vec<(HapCharacteristic, HapCharacteristicValue)>,
}Expand description
Result of mapping one HOMECORE entity state to the HAP layer.
Fields§
§accessory_type: HapAccessoryTypeHAP service type to advertise for this entity.
characteristics: Vec<(HapCharacteristic, HapCharacteristicValue)>Characteristic key/value pairs to set on the HAP service.
Trait Implementations§
Source§impl Clone for AccessoryMapping
impl Clone for AccessoryMapping
Source§fn clone(&self) -> AccessoryMapping
fn clone(&self) -> AccessoryMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AccessoryMapping
impl RefUnwindSafe for AccessoryMapping
impl Send for AccessoryMapping
impl Sync for AccessoryMapping
impl Unpin for AccessoryMapping
impl UnsafeUnpin for AccessoryMapping
impl UnwindSafe for AccessoryMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more