Add into_inner method to StartHandshake

This allows for recovering the underlying raw connection, even though
it's had the ClientHello read off of it already.
This commit is contained in:
Brian Picciano 2023-07-27 12:45:08 +02:00
parent b7289d7e7e
commit 3d462a1d97

View File

@ -331,6 +331,12 @@ where
state: TlsState::Stream,
}))
}
/// Returns the original IO instance. Note that at least the ClientHello will have been read
/// off the IO by this point.
pub fn into_inner(self) -> IO {
self.io
}
}
/// Future returned from `TlsConnector::connect` which will resolve