pub enum IoOptions {
Inherit,
Pipe,
Null,
}
Expand description
I/O redirection options for script execution.
Controls how stdin, stdout, and stderr are handled during script execution.
Variants§
Inherit
Inherit from the parent process.
The script will use the same stdin/stdout/stderr as the calling process.
Pipe
Pipe to the parent process.
The script’s I/O will be captured and made available in the ExecResult
.
Null
Discard the output.
The script’s I/O will be redirected to /dev/null (or equivalent).
Trait Implementations§
impl Copy for IoOptions
impl Eq for IoOptions
impl StructuralPartialEq for IoOptions
Auto Trait Implementations§
impl Freeze for IoOptions
impl RefUnwindSafe for IoOptions
impl Send for IoOptions
impl Sync for IoOptions
impl Unpin for IoOptions
impl UnwindSafe for IoOptions
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