pub struct CliError {
pub message: String,
pub code: u8,
}Expand description
A failure: printed as {"error": message, "code": code} on stderr (or
<tool>: <message> with --text), and code is the exit status.
Fields§
§message: String§code: u8Implementations§
Source§impl CliError
impl CliError
Sourcepub fn not_implemented(what: impl Into<String>) -> CliError
pub fn not_implemented(what: impl Into<String>) -> CliError
The verb exists and this driver cannot do it yet (exit 3). The
message starts not implemented, which scripts may match on.
Trait Implementations§
impl Eq for CliError
impl StructuralPartialEq for CliError
Auto Trait Implementations§
impl Freeze for CliError
impl RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin 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