Struct TlsInfo
pub struct TlsInfo { /* private fields */ }
Hyper extension carrying extra TLS layer information.
Made available to clients on responses when tls_info is set.
Implementations
impl TlsInfo
fn peer_certificate(&self) -> Option<&[u8]>Get the DER encoded leaf certificate of the peer.
fn version(&self) -> Option<Version>Get the TLS protocol version negotiated with the peer.
Returns
Noneif the TLS backend cannot report it. Thenative-tlsbackend never reports a version.
Trait Implementations
impl Clone for TlsInfo
fn clone(&self) -> Self
impl Debug for TlsInfo
fn fmt(&self, f: &mut Formatter<'_>) -> Result