pub struct BashOutcome {
pub output: String,
pub exit_code: Option<i32>,
pub cancelled: bool,
pub truncated: bool,
pub full_output_path: Option<String>,
}Expand description
The bash result record.
Fields§
§output: StringCombined, sanitised output (ANSI stripped, binary garbage removed, no \r), tail
truncated when needed.
exit_code: Option<i32>Exit code (None when cancelled).
cancelled: boolThe command was cancelled.
truncated: booloutput was truncated.
full_output_path: Option<String>Temp file with the full output (written once output exceeded 50KB).
Trait Implementations§
Source§impl Clone for BashOutcome
impl Clone for BashOutcome
Source§impl Debug for BashOutcome
impl Debug for BashOutcome
impl Eq for BashOutcome
Source§impl PartialEq for BashOutcome
impl PartialEq for BashOutcome
impl StructuralPartialEq for BashOutcome
Auto Trait Implementations§
impl Freeze for BashOutcome
impl RefUnwindSafe for BashOutcome
impl Send for BashOutcome
impl Sync for BashOutcome
impl Unpin for BashOutcome
impl UnsafeUnpin for BashOutcome
impl UnwindSafe for BashOutcome
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.