pub struct ConversationState {
pub client_random: Option<Vec<u8>>,
pub selected_protocol: Option<Protocol>,
pub selected_cipher: Option<Cipher>,
}Expand description
The conversation state tracks the context necessary to decrypt the connection.
For example, we need to know the cipher to know how to decrypt encrypted records.
Fields§
§client_random: Option<Vec<u8>>§selected_protocol: Option<Protocol>§selected_cipher: Option<Cipher>Trait Implementations§
Source§impl Clone for ConversationState
impl Clone for ConversationState
Source§fn clone(&self) -> ConversationState
fn clone(&self) -> ConversationState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversationState
impl Debug for ConversationState
Source§impl Default for ConversationState
impl Default for ConversationState
Source§fn default() -> ConversationState
fn default() -> ConversationState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversationState
impl RefUnwindSafe for ConversationState
impl Send for ConversationState
impl Sync for ConversationState
impl Unpin for ConversationState
impl UnwindSafe for ConversationState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)