pub struct Output {
pub success: bool,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
What a finished program returned.
Fields§
§success: boolWhether it exited with code 0.
stdout: Vec<u8>Everything it wrote to stdout, as bytes: console programs on Windows write in the console code page, not UTF-8.
stderr: Vec<u8>Everything it wrote to stderr, as bytes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Output
impl Freeze for Output
impl Move for Output
impl RefUnwindSafe for Output
impl Send for Outputwhere
RawVecInner: Send,
impl Sync for Outputwhere
RawVecInner: Sync,
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Outputwhere
RawVecInner: UnwindSafe,
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