pub(crate) enum Cli {
Run(PathBuf),
Help,
Version,
}Expand description
Outcome of parsing the command line.
Help and version are first-class results rather than errors so the process can exit 0 after printing.
Variants§
Run(PathBuf)
Run the gateway with this config file.
Help
Print usage and exit successfully.
Version
Print the crate version and exit successfully.
Trait Implementations§
impl Eq for Cli
impl StructuralPartialEq for Cli
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
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