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.

Trait Implementations

impl Clone for TlsInfo

fn clone(&self) -> TlsInfo

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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for TlsInfo

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for TlsInfo

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

fn and<P, B, E>(self, other: P) -> And<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,
fn or<P, B, E>(self, other: P) -> Or<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for TlsInfo

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>