pub struct Output {
pub pid: pid_t,
pub status: Option<ExitStatus>,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub timed_out: bool,
pub stdout_early_exited: bool,
}Expand description
The result of a process execution.
Fields§
§pid: pid_tThe PID of the finished process.
status: Option<ExitStatus>Final exit status (None if wait=false).
stdout: Vec<u8>Captured stdout buffer.
stderr: Vec<u8>Captured stderr buffer.
timed_out: boolWhether the process timed out.
stdout_early_exited: boolWhether stdout drain stopped because the early-exit callback matched.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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