pub trait TlsConnect<S> {
    type Stream: TlsStream + Unpin;
    type Error: Into<Box<dyn Error + Sync + Send>>;
    type Future: Future<Output = Result<Self::Stream, Self::Error>>;

    fn connect(self, stream: S) -> Self::Future;
}
Expand description

An asynchronous function wrapping a stream in a TLS session.

Required Associated Types

The stream returned by the future.

The error returned by the future.

The future returned by the connector.

Required Methods

Returns a future performing a TLS handshake over the stream.

Implementors