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 f3ae75d commit 886024aCopy full SHA for 886024a
src/compat.rs
@@ -96,6 +96,11 @@ impl<S> AllowStd<S> {
96
}
97
98
99
+
100
+ /// Returns the underlying stream.
101
+ pub(crate) fn into_inner(self) -> S {
102
+ self.inner
103
+ }
104
105
106
// Proxy Waker that we pass to the internal AsyncRead/Write of the
src/lib.rs
@@ -247,6 +247,11 @@ impl<S> WebSocketStream<S> {
247
f(&mut self.inner)
248
249
250
+ /// Consumes the `WebSocketStream` and returns the underlying stream.
251
+ pub fn into_inner(self) -> S {
252
+ self.inner.into_inner().into_inner()
253
254
255
/// Returns a shared reference to the inner stream.
256
pub fn get_ref(&self) -> &S
257
where
0 commit comments