diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-04-21 00:20:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 00:20:33 +0200 |
commit | 8a7539cab36699465ec6e37455c54fa86f3c0cbe (patch) | |
tree | c3df15f3b673d1ec1a9c4ffada1a9274e3aca942 /runtime/ops/io.rs | |
parent | 8b258070542a81d217226fe832b26d81cf20113d (diff) |
feat(runtime): two-tier subprocess API (#11618)
Diffstat (limited to 'runtime/ops/io.rs')
-rw-r--r-- | runtime/ops/io.rs | 8 |
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>; |