pub struct ConnState {
pub seq_num: u64,
pub key: Vec<u8>,
pub mac_key: Vec<u8>,
pub iv: Vec<u8>,
}Expand description
TLS connection state for one direction (read or write).
Fields§
§seq_num: u64Sequence number for MAC computation.
key: Vec<u8>Encryption key.
mac_key: Vec<u8>MAC key (for CBC suites).
iv: Vec<u8>IV (fixed for AEAD, per-record for CBC in TLS 1.0).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnState
impl RefUnwindSafe for ConnState
impl Send for ConnState
impl Sync for ConnState
impl Unpin for ConnState
impl UnsafeUnpin for ConnState
impl UnwindSafe for ConnState
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