pub struct HapServiceRecord {
pub instance_name: String,
pub port: u16,
pub device_id: String,
pub model: String,
pub configuration_number: u32,
pub state_number: u32,
pub category: u16,
pub paired: bool,
}Expand description
HAP service record advertised over mDNS.
Fields§
§instance_name: StringService instance shown in discovery UI.
port: u16Bound HAP TCP port.
device_id: StringStable colon-separated accessory device identifier.
model: StringAccessory model (md TXT key).
configuration_number: u32Configuration number (c#), incremented when accessory layout changes.
state_number: u32Current state number (s#).
category: u16HAP accessory category identifier. Bridges use 2.
paired: boolWhether a controller pairing already exists.
Implementations§
Trait Implementations§
Source§impl Clone for HapServiceRecord
impl Clone for HapServiceRecord
Source§fn clone(&self) -> HapServiceRecord
fn clone(&self) -> HapServiceRecord
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 moreSource§impl Debug for HapServiceRecord
impl Debug for HapServiceRecord
impl Eq for HapServiceRecord
Source§impl PartialEq for HapServiceRecord
impl PartialEq for HapServiceRecord
impl StructuralPartialEq for HapServiceRecord
Auto Trait Implementations§
impl Freeze for HapServiceRecord
impl RefUnwindSafe for HapServiceRecord
impl Send for HapServiceRecord
impl Sync for HapServiceRecord
impl Unpin for HapServiceRecord
impl UnsafeUnpin for HapServiceRecord
impl UnwindSafe for HapServiceRecord
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