pub struct ExecOutput {
pub stdout: String,
pub stderr: String,
pub combined: String,
pub exit_code: Option<i32>,
pub timed_out: bool,
pub cancelled: bool,
pub truncated: bool,
pub duration: Duration,
pub front_back: Option<FrontBackCapture>,
}Expand description
The captured result of a command (completed, timed out, or cancelled).
Fields§
§stdout: StringCaptured stdout (tail-retained to the byte cap, lossy UTF-8).
stderr: StringCaptured stderr (tail-retained to the byte cap, lossy UTF-8).
combined: Stringstdout then stderr, the convenience most tools render.
exit_code: Option<i32>The exit code, or None if the command was killed by a signal.
timed_out: boolWhether the hard timeout fired.
cancelled: boolWhether cooperative cancellation fired.
truncated: boolWhether either stream hit the byte cap (older bytes dropped).
duration: DurationWall-clock duration.
front_back: Option<FrontBackCapture>Combined front/back capture (only when the request set front_back).
Trait Implementations§
Source§impl Clone for ExecOutput
impl Clone for ExecOutput
Source§fn clone(&self) -> ExecOutput
fn clone(&self) -> ExecOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecOutput
impl RefUnwindSafe for ExecOutput
impl Send for ExecOutput
impl Sync for ExecOutput
impl Unpin for ExecOutput
impl UnsafeUnpin for ExecOutput
impl UnwindSafe for ExecOutput
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