pub struct SslStreamBuilder<S> { /* private fields */ }Expand description
A partially constructed SslStream, useful for unusual handshakes.
Implementations§
Source§impl<S> SslStreamBuilder<S>
impl<S> SslStreamBuilder<S>
Sourcepub async fn accept(self) -> Result<SslStream<S>, HandshakeError<S>>
pub async fn accept(self) -> Result<SslStream<S>, HandshakeError<S>>
Initiates a client-side TLS handshake.
Sourcepub async fn connect(self) -> Result<SslStream<S>, HandshakeError<S>>
pub async fn connect(self) -> Result<SslStream<S>, HandshakeError<S>>
Initiates a server-side TLS handshake.