pub struct EarlyExit {
pub output: String,
pub status: Result<(), ()>,
}
Expand description
Information to display to the user about why a FromArgs
construction exited early.
This can occur due to either failed parsing or a flag like --help
.
Fields§
§output: String
The output to display to the user of the commandline tool.
status: Result<(), ()>
Status of argument parsing.
Ok
if the command was parsed successfully and the early exit is due
to a flag like --help
causing early exit with output.
Err
if the arguments were not successfully parsed.
Trait Implementations§
impl Eq for EarlyExit
impl StructuralPartialEq for EarlyExit
Auto Trait Implementations§
impl Freeze for EarlyExit
impl RefUnwindSafe for EarlyExit
impl Send for EarlyExit
impl Sync for EarlyExit
impl Unpin for EarlyExit
impl UnwindSafe for EarlyExit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)