From 8a7539cab36699465ec6e37455c54fa86f3c0cbe Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Thu, 21 Apr 2022 00:20:33 +0200 Subject: feat(runtime): two-tier subprocess API (#11618) --- runtime/ops/io.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'runtime/ops/io.rs') 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; -- cgit v1.2.3