pub struct ExtractedSecrets {
pub tx: (u64, ConnectionTrafficSecrets),
pub rx: (u64, ConnectionTrafficSecrets),
}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.
This is a low-level structure, usually you don’t need to use it directly unless you are implementing a higher-level abstraction.
This is copied from rustls.
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
Trait Implementations§
Source§impl TryFrom<ExtractedSecrets> for ExtractedSecrets
Available on crate feature shim-rustls only.
impl TryFrom<ExtractedSecrets> for ExtractedSecrets
Available on crate feature
shim-rustls only.Source§fn try_from(secrets: ExtractedSecrets) -> Result<Self, Self::Error>
fn try_from(secrets: ExtractedSecrets) -> Result<Self, Self::Error>
The secrets and context must be extracted from a
rustls::client::UnbufferedClientConnection or
rustls::client::UnbufferedClientConnection. See
rustls::kernel module documentation for more details.
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