pub struct AccessoryPairing {
pub pairing_id: String,
pub ltpk: [u8; 32],
}Expand description
The pairing material a successful Pair Setup yields about the accessory.
The controller stores this and uses it during every later Pair Verify to authenticate the accessory.
Fields§
§pairing_id: StringThe accessory’s pairing identifier (AccessoryPairingID), a UTF-8 string
(typically a MAC-address-like value such as AE:EC:86:C0:BF:D7).
ltpk: [u8; 32]The accessory’s 32-byte Ed25519 long-term public key (AccessoryLTPK).
Trait Implementations§
Source§impl Clone for AccessoryPairing
impl Clone for AccessoryPairing
Source§fn clone(&self) -> AccessoryPairing
fn clone(&self) -> AccessoryPairing
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 AccessoryPairing
impl Debug for AccessoryPairing
impl Eq for AccessoryPairing
Source§impl PartialEq for AccessoryPairing
impl PartialEq for AccessoryPairing
Source§fn eq(&self, other: &AccessoryPairing) -> bool
fn eq(&self, other: &AccessoryPairing) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessoryPairing
Auto Trait Implementations§
impl Freeze for AccessoryPairing
impl RefUnwindSafe for AccessoryPairing
impl Send for AccessoryPairing
impl Sync for AccessoryPairing
impl Unpin for AccessoryPairing
impl UnsafeUnpin for AccessoryPairing
impl UnwindSafe for AccessoryPairing
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