Type Definition trust_dns::tls::TlsStream
[−]
[src]
type TlsStream = TcpStream<TokioTlsStream<TokioTcpStream>>;
A TlsStream counterpart to the TcpStream which embeds a secure TlsStream
Methods
impl TlsStream
[src]
fn builder() -> TlsStreamBuilder
[src]
A builder for associating trust information to the TlsStream
.
fn from_tls_stream(
stream: TokioTlsStream<TokioTcpStream>,
peer_addr: SocketAddr
) -> (Self, BufStreamHandle)
[src]
stream: TokioTlsStream<TokioTcpStream>,
peer_addr: SocketAddr
) -> (Self, BufStreamHandle)
Initializes a TlsStream with an existing tokio_tls::TlsStream.
This is intended for use with a TlsListener and Incoming connections