pub struct MidHandshakeSslStream<S> { /* private fields */ }Expand description
An SSL stream midway through the handshake process.
Implementations§
Source§impl<S> MidHandshakeSslStream<S>
impl<S> MidHandshakeSslStream<S>
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Consumes self, returning its error.
Sourcepub fn into_source_stream(self) -> S
pub fn into_source_stream(self) -> S
Returns the source data stream.
Sourcepub fn into_parts(self) -> (Error, S)
pub fn into_parts(self) -> (Error, S)
Returns both the error and the source data stream, consuming self.
Sourcepub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
pub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
Restarts the handshake process.
This corresponds to SSL_do_handshake.