pub enum Stdio {
Inherit,
Pipe,
Null,
}Expand description
Standard I/O configuration for child processes.
Configures how the child’s stdin, stdout, and stderr are handled.
Variants§
Inherit
Inherit from the parent process.
The child will share the same stdin/stdout/stderr as the parent.
Pipe
Create a pipe to/from the child process.
For stdin, the parent can write to the child. For stdout/stderr, the parent can read from the child.
Null
Discard (redirect to /dev/null).
For stdin, the child will read EOF immediately. For stdout/stderr, the output is discarded.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stdio
impl RefUnwindSafe for Stdio
impl Send for Stdio
impl Sync for Stdio
impl Unpin for Stdio
impl UnsafeUnpin for Stdio
impl UnwindSafe for Stdio
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).