pub trait CertifiedConn {
// Required methods
fn export_keying_material(
&self,
len: usize,
label: &[u8],
context: Option<&[u8]>,
) -> IoResult<Vec<u8>>;
fn peer_certificate(&self) -> IoResult<Option<Vec<u8>>>;
}
Expand description
An object with a peer certificate: typically a TLS connection.
Required Methods§
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.
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.
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.