pub struct TlsHandshake {
pub alpn: Option<Cow<'static, [u8]>>,
pub sni: Option<DnsName<'static>>,
pub cert: Option<CertificateDer<'static>>,
pub version: Option<SslVersion>,
}
Expand description
Negotiated TLS handshake information.
Fields§
§alpn: Option<Cow<'static, [u8]>>
The negotiated ALPN protocol.
sni: Option<DnsName<'static>>
The SNI hostname if provided.
cert: Option<CertificateDer<'static>>
The client certificate, if any.
version: Option<SslVersion>
The negotiated TLS version.
Trait Implementations§
Source§impl Clone for TlsHandshake
impl Clone for TlsHandshake
Source§fn clone(&self) -> TlsHandshake
fn clone(&self) -> TlsHandshake
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TlsHandshake
impl Debug for TlsHandshake
Source§impl Default for TlsHandshake
impl Default for TlsHandshake
Source§fn default() -> TlsHandshake
fn default() -> TlsHandshake
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TlsHandshake
impl RefUnwindSafe for TlsHandshake
impl Send for TlsHandshake
impl Sync for TlsHandshake
impl Unpin for TlsHandshake
impl UnwindSafe for TlsHandshake
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