pub struct CliExit(pub i32);Expand description
Carries a docs/ERRORS.md §4 process exit code out of a CLI
command to main, which owns the actual std::process::exit
(calling it inside run_with_options would kill in-process
integration tests). The human-readable error[CODE]: … line has
ALREADY been written to stderr by render_fetch_error before
this is constructed, so main must NOT print it again. Issue #119.
Tuple Fields§
§0: i32Trait Implementations§
Source§impl Error for CliExit
impl Error for CliExit
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CliExit
impl RefUnwindSafe for CliExit
impl Send for CliExit
impl Sync for CliExit
impl Unpin for CliExit
impl UnsafeUnpin for CliExit
impl UnwindSafe for CliExit
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