Struct ExtractedSecrets
pub struct ExtractedSecrets {
pub tx: (u64, ConnectionTrafficSecrets),
pub rx: (u64, ConnectionTrafficSecrets),
}Available on crate feature
tls only.Expand description
Secrets for transmitting/receiving data over a TLS session.
After performing a handshake with rustls, these secrets can be extracted to configure kTLS for a socket, and have the kernel take over encryption and/or decryption.
Fields§
§tx: (u64, ConnectionTrafficSecrets)sequence number and secrets for the “tx” (transmit) direction
rx: (u64, ConnectionTrafficSecrets)sequence number and secrets for the “rx” (receive) direction
Auto Trait Implementations§
impl Freeze for ExtractedSecrets
impl RefUnwindSafe for ExtractedSecrets
impl Send for ExtractedSecrets
impl Sync for ExtractedSecrets
impl Unpin for ExtractedSecrets
impl UnwindSafe for ExtractedSecrets
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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