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,
pub stdout_pending: Option<Vec<u8>>,
pub stderr_pending: Option<Vec<u8>>,
}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.
stdout_pending: Option<Vec<u8>>Streaming mode: the stdout chunk held while the sink queue was full at completion (empty/none when no sink was attached). The caller must flush it before delivering the terminal frame.
stderr_pending: Option<Vec<u8>>Streaming mode: the stderr chunk held while the sink queue was full at completion.
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