pub trait CertifiedConn {
    // Required method
    fn peer_certificate(&self) -> IoResult<Option<Vec<u8>>>;
}
Expand description

An object with a peer certificate: typically a TLS connection.

Required Methods§

source

fn peer_certificate(&self) -> IoResult<Option<Vec<u8>>>

Try to return the (DER-encoded) peer certificate for this connection, if any.

Implementations on Foreign Types§

source§

impl<S> CertifiedConn for TlsStream<S>

Available on (crate features native-tls or rustls) and (crate features async-std or tokio) and crate feature rustls only.
source§

impl<S> CertifiedConn for TlsStream<S>
where S: AsyncRead + AsyncWrite + Unpin,

Available on (crate features native-tls or rustls) and (crate features async-std or tokio) and crate feature native-tls only.

Implementors§