Trait TlsConnect

Source
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>>;

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

An asynchronous function wrapping a stream in a TLS session.

Required Associated Types§

Source

type Stream: TlsStream + Unpin

The stream returned by the future.

Source

type Error: Into<Box<dyn Error + Sync + Send>>

The error returned by the future.

Source

type Future: Future<Output = Result<Self::Stream, Self::Error>>

The future returned by the connector.

Required Methods§

Source

fn connect(self, stream: S) -> Self::Future

Returns a future performing a TLS handshake over the stream.

Implementors§

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy