pub struct CommandOutput {
pub exit_code: Option<i32>,
pub output: String,
pub output_bytes: usize,
pub truncated: bool,
pub timed_out: bool,
pub cancelled: bool,
pub duration: Duration,
}Expand description
What a command did.
Fields§
§exit_code: Option<i32>None when killed by a signal or timeout.
output: StringCombined stdout and stderr, interleaved in arrival order, capped to head + tail.
output_bytes: usize§truncated: bool§timed_out: bool§cancelled: bool§duration: DurationTrait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§impl Debug for CommandOutput
impl Debug for CommandOutput
impl Eq for CommandOutput
Source§impl PartialEq for CommandOutput
impl PartialEq for CommandOutput
impl StructuralPartialEq for CommandOutput
Auto Trait Implementations§
impl Forget for CommandOutput
impl Freeze for CommandOutput
impl Move for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutputwhere
RawVecInner: Send,
impl Sync for CommandOutputwhere
RawVecInner: Sync,
impl Unpin for CommandOutput
impl UnsafeUnpin for CommandOutput
impl UnwindSafe for CommandOutputwhere
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