#[non_exhaustive]pub enum ProcessIo {
Captured(CapturedIo),
Observed(ObservedIo),
Inherited(InheritedIo),
Pty(PtyIo),
}Expand description
Process I/O strategy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Captured(CapturedIo)
Capture stdout/stderr separately through pipes.
Observed(ObservedIo)
Observe stdout/stderr live through pipes with optional capture.
Inherited(InheritedIo)
Inherit parent terminal stdio.
Pty(PtyIo)
Run the child on a pseudoterminal so it renders as in a real terminal.
stdout and stderr are merged into one stream; see PtyIo. Unix-only.
Implementations§
Source§impl ProcessIo
impl ProcessIo
Sourcepub fn captured(io: CapturedIo) -> Self
pub fn captured(io: CapturedIo) -> Self
Create captured I/O mode.
Sourcepub fn observed(io: ObservedIo) -> Self
pub fn observed(io: ObservedIo) -> Self
Create observed I/O mode.
Sourcepub fn inherited(io: InheritedIo) -> Self
pub fn inherited(io: InheritedIo) -> Self
Create inherited I/O mode.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessIo
impl !UnwindSafe for ProcessIo
impl Freeze for ProcessIo
impl Send for ProcessIo
impl Sync for ProcessIo
impl Unpin for ProcessIo
impl UnsafeUnpin 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