pub enum CapturedOutput {
Split {
stdout: Vec<u8>,
stderr: Vec<u8>,
},
Merged {
output: Vec<u8>,
},
}Expand description
A command’s raw captured output, exactly as the process wrote it.
Variants§
Split
Output captured with CaptureMode::Split.
Fields
Merged
Output captured with CaptureMode::Merged: both streams, in exact order.
Implementations§
Source§impl CapturedOutput
impl CapturedOutput
Sourcepub const fn empty(mode: CaptureMode) -> Self
pub const fn empty(mode: CaptureMode) -> Self
No output yet, in the shape of mode.
Sourcepub const fn mode(&self) -> CaptureMode
pub const fn mode(&self) -> CaptureMode
The capture mode this output was captured with.
Trait Implementations§
Source§impl Clone for CapturedOutput
impl Clone for CapturedOutput
Source§impl Debug for CapturedOutput
impl Debug for CapturedOutput
impl Eq for CapturedOutput
Source§impl PartialEq for CapturedOutput
impl PartialEq for CapturedOutput
impl StructuralPartialEq for CapturedOutput
Auto Trait Implementations§
impl Freeze for CapturedOutput
impl RefUnwindSafe for CapturedOutput
impl Send for CapturedOutput
impl Sync for CapturedOutput
impl Unpin for CapturedOutput
impl UnsafeUnpin for CapturedOutput
impl UnwindSafe for CapturedOutput
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