pub struct InvocationOutcome {
pub command: Vec<String>,
pub command_line: Vec<String>,
pub exit_code: i32,
pub error: Option<String>,
pub duration: Duration,
}Expand description
The outcome of an invocation, recorded once after cli.execute() returns.
Fields§
§command: Vec<String>Resolved clap subcommand path.
command_line: Vec<String>Full argv.
exit_code: i32Process exit code.
error: Option<String>Rendered error chain, when the command failed.
duration: DurationWall time of the whole invocation.
Trait Implementations§
Source§impl Clone for InvocationOutcome
impl Clone for InvocationOutcome
Source§fn clone(&self) -> InvocationOutcome
fn clone(&self) -> InvocationOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InvocationOutcome
impl RefUnwindSafe for InvocationOutcome
impl Send for InvocationOutcome
impl Sync for InvocationOutcome
impl Unpin for InvocationOutcome
impl UnsafeUnpin for InvocationOutcome
impl UnwindSafe for InvocationOutcome
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