Introduce MidHandshakeSslStream::into_parts
This commit is contained in:
parent
51734088ef
commit
66cabd882c
|
|
@ -2876,6 +2876,11 @@ impl<S> MidHandshakeSslStream<S> {
|
|||
self.stream.into_inner()
|
||||
}
|
||||
|
||||
/// Returns both the error and the source data stream, consuming `self`.
|
||||
pub fn into_parts(self) -> (Error, S) {
|
||||
(self.error, self.stream.into_inner())
|
||||
}
|
||||
|
||||
/// Restarts the handshake process.
|
||||
///
|
||||
/// This corresponds to [`SSL_do_handshake`].
|
||||
|
|
|
|||
Loading…
Reference in New Issue