pub struct KeyMethodV2 {
pub pre_master: [u8; 48],
pub random: [u8; 32],
pub options: String,
pub username: Option<String>,
pub password: Option<String>,
pub peer_info: Option<String>,
}Expand description
Key method v2 data (exchanged during TLS handshake)
Fields§
§pre_master: [u8; 48]Pre-master secret (48 bytes)
random: [u8; 32]Random data (32 bytes)
options: StringOptions string
username: Option<String>Username (if using auth)
password: Option<String>Password (if using auth)
peer_info: Option<String>Peer info
Implementations§
Trait Implementations§
Source§impl Clone for KeyMethodV2
impl Clone for KeyMethodV2
Source§fn clone(&self) -> KeyMethodV2
fn clone(&self) -> KeyMethodV2
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 moreAuto Trait Implementations§
impl Freeze for KeyMethodV2
impl RefUnwindSafe for KeyMethodV2
impl Send for KeyMethodV2
impl Sync for KeyMethodV2
impl Unpin for KeyMethodV2
impl UnwindSafe for KeyMethodV2
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