Expand description
The CLI error is the error type used at Cargo’s CLI-layer.
All errors from the lib side of Cargo will get wrapped with this error. Other errors (such as command-line argument validation) will create this directly.
Fields
error: Option<Error>
The error to display. This can be None
in rare cases to exit with a
code without displaying a message. For example cargo run -q
where
the resulting process exits with a nonzero code (on Windows), or an
external subcommand that exits nonzero (we assume it printed its own
message).
exit_code: i32
The process exit code.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnwindSafe for CliError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more