pub struct RpPairingFile {
pub e_private_key: SigningKey,
pub e_public_key: VerifyingKey,
pub identifier: String,
pub alt_irk: Option<Vec<u8>>,
}Fields§
§e_private_key: SigningKey§e_public_key: VerifyingKey§identifier: String§alt_irk: Option<Vec<u8>>Implementations§
Source§impl RpPairingFile
impl RpPairingFile
Sourcepub fn public_key_bytes(&self) -> Vec<u8> ⓘ
pub fn public_key_bytes(&self) -> Vec<u8> ⓘ
Returns the Ed25519 public key bytes (32 bytes).
Sourcepub fn private_key_bytes(&self) -> Vec<u8> ⓘ
pub fn private_key_bytes(&self) -> Vec<u8> ⓘ
Returns the Ed25519 private key bytes (32 bytes).
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the identifier string.
pub fn generate(sending_host: &str) -> Self
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, IdeviceError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, IdeviceError>
Parse from plist bytes (XML or binary).
pub async fn write_to_file( &self, path: impl AsRef<Path>, ) -> Result<(), IdeviceError>
pub async fn read_from_file( path: impl AsRef<Path>, ) -> Result<Self, IdeviceError>
Trait Implementations§
Source§impl Clone for RpPairingFile
impl Clone for RpPairingFile
Source§fn clone(&self) -> RpPairingFile
fn clone(&self) -> RpPairingFile
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 RpPairingFile
impl RefUnwindSafe for RpPairingFile
impl Send for RpPairingFile
impl Sync for RpPairingFile
impl Unpin for RpPairingFile
impl UnsafeUnpin for RpPairingFile
impl UnwindSafe for RpPairingFile
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