summaryrefslogtreecommitdiff
path: root/runtime/ops/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/io.rs')
-rw-r--r--runtime/ops/io.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/ops/io.rs b/runtime/ops/io.rs
index b8449af86..34cd541d5 100644
--- a/runtime/ops/io.rs
+++ b/runtime/ops/io.rs
@@ -134,6 +134,10 @@ where
stream.shutdown().await?;
Ok(())
}
+
+ pub fn into_inner(self) -> S {
+ self.stream.into_inner()
+ }
}
#[derive(Debug)]
@@ -178,6 +182,10 @@ where
.await?;
Ok((nread, buf))
}
+
+ pub fn into_inner(self) -> S {
+ self.stream.into_inner()
+ }
}
pub type ChildStdinResource = WriteOnlyResource<process::ChildStdin>;