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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more