pub struct RunResult {
pub command: Vec<String>,
pub started_at: DateTime<Utc>,
pub finished_at: DateTime<Utc>,
pub duration: Duration,
pub exit_code: i32,
pub spawn_error: Option<String>,
}Expand description
Captured result from executing a wrapped command.
Fields§
§command: Vec<String>Command argv used for execution.
started_at: DateTime<Utc>UTC timestamp for command start.
finished_at: DateTime<Utc>UTC timestamp for command finish.
duration: DurationTotal command execution duration.
exit_code: i32Final process exit code (127 when spawn fails).
spawn_error: Option<String>Spawn-time error message if the command failed to start.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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