pub struct CommandOutcome {
pub command: String,
pub exit: Option<i32>,
pub duration: Duration,
}Expand description
What running something produced, beyond its output.
Carried separately from the bytes because US-0703 requires exit status and timing to survive regardless of the cap: they are a handful of tokens and they are the first thing anyone asks about a failed command, so a slicer that dropped them to fit more log lines would have optimised the wrong way.
Fields§
§command: StringThe command line, as invoked.
exit: Option<i32>The process exit status. None where it was killed by a signal or never
finished.
duration: DurationHow long it ran.
Implementations§
Trait Implementations§
Source§impl Clone for CommandOutcome
impl Clone for CommandOutcome
Source§impl Debug for CommandOutcome
impl Debug for CommandOutcome
Source§impl<'de> Deserialize<'de> for CommandOutcome
impl<'de> Deserialize<'de> for CommandOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandOutcome
Source§impl PartialEq for CommandOutcome
impl PartialEq for CommandOutcome
Source§impl Serialize for CommandOutcome
impl Serialize for CommandOutcome
impl StructuralPartialEq for CommandOutcome
Auto Trait Implementations§
impl Freeze for CommandOutcome
impl RefUnwindSafe for CommandOutcome
impl Send for CommandOutcome
impl Sync for CommandOutcome
impl Unpin for CommandOutcome
impl UnsafeUnpin for CommandOutcome
impl UnwindSafe for CommandOutcome
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> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.