We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4a878 commit 641a4a4Copy full SHA for 641a4a4
src/client.rs
@@ -28,6 +28,18 @@ pub(crate) enum MidHandshake<IO> {
28
End,
29
}
30
31
+impl<IO> TlsStream<IO> {
32
+ /// Returns a reference to the underlying IO stream.
33
+ pub fn get_ref(&self) -> &IO {
34
+ &self.io
35
+ }
36
+
37
+ /// Returns a mutuable reference to the underlying IO stream.
38
+ pub fn get_mut(&mut self) -> &mut IO {
39
+ &mut self.io
40
41
+}
42
43
impl<IO> Future for MidHandshake<IO>
44
where
45
IO: AsyncRead + AsyncWrite + Unpin,
0 commit comments