Struct rustls_connector::MidHandshakeTlsStream
source · pub struct MidHandshakeTlsStream<S: Read + Write> { /* private fields */ }Expand description
A TLS stream which has been interrupted during the handshake
Implementations§
source§impl<S: Debug + Read + Send + Sync + Write + 'static> MidHandshakeTlsStream<S>
impl<S: Debug + Read + Send + Sync + Write + 'static> MidHandshakeTlsStream<S>
sourcepub fn handshake(self) -> Result<TlsStream<S>, HandshakeError<S>>
pub fn handshake(self) -> Result<TlsStream<S>, HandshakeError<S>>
Retry the handshake
Errors
Returns a HandshakeError containing either the current state of the handshake or the
failure when we couldn’t complete the hanshake