pub struct Failure {
pub code: &'static ErrorCode,
pub message: String,
pub fix: String,
pub exit: u8,
}Expand description
Why a command failed, with its code and the exit code: 2 for a wrong usage, 1
otherwise.
Fields§
§code: &'static ErrorCode§message: String§fix: String§exit: u8Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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