Struct cargo_edit::CliError
source · pub struct CliError {
pub error: Option<Error>,
pub exit_code: i32,
}
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 Freeze for CliError
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnwindSafe for CliError
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