pub struct Executed {
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub code: Option<i32>,
}Expand description
What one command left behind: the captured streams and the exit code. The streams carry whatever the executor captured; the tool — not the executor — applies the display caps to them.
Fields§
§stdout: Vec<u8>Everything the command wrote to stdout.
stderr: Vec<u8>Everything the command wrote to stderr.
code: Option<i32>The exit code; None when the process was terminated by a signal.
Trait Implementations§
impl Eq for Executed
impl StructuralPartialEq for Executed
Auto Trait Implementations§
impl Forget for Executed
impl Freeze for Executed
impl Move for Executed
impl RefUnwindSafe for Executed
impl Send for Executed
impl Sync for Executed
impl Unpin for Executed
impl UnsafeUnpin for Executed
impl UnwindSafe for Executed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.