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.
2 parents ae4a878 + 04d43a0 commit b1cc137Copy full SHA for b1cc137
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,
src/connector.rs
@@ -25,8 +25,6 @@ use webpki::DNSNameRef;
25
/// ## Example
26
///
27
/// ```rust
-/// #![feature(async_await)]
-///
/// use async_tls::TlsConnector;
/// async_std::task::block_on(async {
0 commit comments