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 None if the TLS backend cannot report it. The native-tls backend 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

Auto Trait Implementations

impl Freeze for TlsInfo

impl RefUnwindSafe for TlsInfo

impl Send for TlsInfo

impl Sync for TlsInfo

impl Unpin for TlsInfo

impl UnsafeUnpin for TlsInfo

impl UnwindSafe for TlsInfo

Blanket Implementations

impl<T> Any for TlsInfo where T: 'static + ?Sized,

impl<T> Borrow<T> for TlsInfo where T: ?Sized,

impl<T> BorrowMut<T> for TlsInfo where T: ?Sized,

impl<T> CloneToUninit for TlsInfo where T: Clone,

impl<T> From<T> for TlsInfo

impl<T> Instrument for TlsInfo

impl<T> PolicyExt for TlsInfo where T: ?Sized,

impl<T> ToOwned for TlsInfo where T: Clone,

impl<T> WithSubscriber for TlsInfo

impl<T, U> Into<U> for TlsInfo where U: From<T>,

impl<T, U> TryFrom<U> for TlsInfo where U: Into<T>,

impl<T, U> TryInto<U> for TlsInfo where U: TryFrom<T>,