pub struct PeerDevice {
pub account_id: String,
pub alt_irk: Vec<u8>,
pub model: String,
pub name: String,
pub remotepairing_udid: String,
}Fields§
§account_id: Stringpeer identifier, same as the identifier returned in the verifyManualPairing response
alt_irk: Vec<u8>altIRK: 16-byte
model: StringDevice’s model identifier, e.g. “iPhone14,4”
name: StringDevice’s name
remotepairing_udid: StringDevice’s Unique Device Identifier
Implementations§
Source§impl PeerDevice
impl PeerDevice
Sourcepub fn validate_auth_tag(
alt_irk: &[u8],
service_identifier: &str,
auth_tag: &str,
) -> bool
pub fn validate_auth_tag( alt_irk: &[u8], service_identifier: &str, auth_tag: &str, ) -> bool
Validates a _remotepairing._tcp mDNS authTag.
alt_irk: 16-byte mDNS identity key (alt_irk) stored in the pairing fileservice_identifier: the service identifier from the mDNS TXT recordauth_tag: 6-byte auth tag from the mDNS TXT record
Computes SipHash-2-4(key=alt_irk, msg=service_identifier) and compares the
first 6 bytes of the 8-byte LE output (reversed) against auth_tag.
pub fn try_from_info_dictionary(dict: &Dictionary) -> Result<Self, IdeviceError>
Trait Implementations§
Source§impl Clone for PeerDevice
impl Clone for PeerDevice
Auto Trait Implementations§
impl Forget for PeerDevice
impl Freeze for PeerDevice
impl RefUnwindSafe for PeerDevice
impl Send for PeerDevice
impl Sync for PeerDevice
impl Unpin for PeerDevice
impl UnsafeUnpin for PeerDevice
impl UnwindSafe for PeerDevice
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