pub enum ChildOutput {
Inherit,
OnStderr,
}Expand description
Where a started program’s own output goes.
Inherit is the normal case, and the reason pmpx captures nothing: the backend’s output stays
live, keeps its colours (it still sees a terminal), and pmpx build > log keeps meaning what it
always meant.
OnStderr is for --json, where stdout is a JSON stream a program is parsing: the backend writes
to pmpx’s stderr instead, so it stays live and visible without ever landing in that stream.
Variants§
Inherit
Hand the child pmpx’s own stdin, stdout and stderr.
OnStderr
Hand the child pmpx’s stderr for its stdout too, keeping pmpx’s stdout for pmpx.
Trait Implementations§
Source§impl Clone for ChildOutput
impl Clone for ChildOutput
impl Copy for ChildOutput
Source§impl Debug for ChildOutput
impl Debug for ChildOutput
impl Eq for ChildOutput
Source§impl PartialEq for ChildOutput
impl PartialEq for ChildOutput
impl StructuralPartialEq for ChildOutput
Auto Trait Implementations§
impl Freeze for ChildOutput
impl RefUnwindSafe for ChildOutput
impl Send for ChildOutput
impl Sync for ChildOutput
impl Unpin for ChildOutput
impl UnsafeUnpin for ChildOutput
impl UnwindSafe for ChildOutput
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