pub struct HandshakeContext {
pub key_algorithm: KeyExchangeAlgorithm,
pub expected_controller: Option<String>,
pub required_firmware_rev: Option<String>,
pub client_nonce: Vec<u8>,
pub device_identity_pubkey: Option<Vec<u8>>,
pub recv_timeout: Duration,
pub debug_cbor: bool,
}Expand description
Context shared between handshake participants.
Fields§
§key_algorithm: KeyExchangeAlgorithm§expected_controller: Option<String>§required_firmware_rev: Option<String>§client_nonce: Vec<u8>§device_identity_pubkey: Option<Vec<u8>>§recv_timeout: Duration§debug_cbor: boolImplementations§
Source§impl HandshakeContext
impl HandshakeContext
pub fn with_client_nonce(self, nonce: Vec<u8>) -> Self
pub fn with_device_identity_pubkey(self, pubkey: Vec<u8>) -> Self
pub fn with_recv_timeout(self, timeout: Duration) -> Self
pub fn with_debug_cbor(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for HandshakeContext
impl Clone for HandshakeContext
Source§fn clone(&self) -> HandshakeContext
fn clone(&self) -> HandshakeContext
Returns a duplicate of the value. Read more
1.0.0 · 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 HandshakeContext
impl Debug for HandshakeContext
Auto Trait Implementations§
impl Freeze for HandshakeContext
impl RefUnwindSafe for HandshakeContext
impl Send for HandshakeContext
impl Sync for HandshakeContext
impl Unpin for HandshakeContext
impl UnwindSafe for HandshakeContext
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