pub struct PairedCredentials {
pub remote_identifier: String,
pub host_identifier: String,
pub host_public_key: Vec<u8>,
pub host_private_key: Vec<u8>,
pub remote_unlock_host_key: Option<String>,
pub session_keys: Option<([u8; 32], [u8; 32])>,
}Expand description
Stored credentials after successful pairing.
Fields§
§remote_identifier: String§host_identifier: String§host_public_key: Vec<u8>§host_private_key: Vec<u8>§remote_unlock_host_key: Option<String>§session_keys: Option<([u8; 32], [u8; 32])>Cipher keys for subsequent sessions (client_key, server_key)
Trait Implementations§
Source§impl Clone for PairedCredentials
impl Clone for PairedCredentials
Source§fn clone(&self) -> PairedCredentials
fn clone(&self) -> PairedCredentials
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 PairedCredentials
impl RefUnwindSafe for PairedCredentials
impl Send for PairedCredentials
impl Sync for PairedCredentials
impl Unpin for PairedCredentials
impl UnsafeUnpin for PairedCredentials
impl UnwindSafe for PairedCredentials
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