pub enum ProcessIo {
SpawnThenWait(Result<SpawnStatus, Command>),
SpawnThenWaitWithOutput(Result<Output, Command>),
}Expand description
The process I/O request enum, emitted by coroutines and processed by runtimes.
Represents all the possible I/O requests that a stream coroutine can emit. Runtimes should be able to handle all variants.
Variants§
SpawnThenWait(Result<SpawnStatus, Command>)
I/O for spawning a process and waiting for its exit status.
Input: command
Output: spawn status
SpawnThenWaitWithOutput(Result<Output, Command>)
I/O for spawning a process and waiting for its exit status and any potential output from stdout or stderr.
Input: command
Output: spawn output
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessIo
impl RefUnwindSafe for ProcessIo
impl Send for ProcessIo
impl Sync for ProcessIo
impl Unpin for ProcessIo
impl UnwindSafe for ProcessIo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more