pub enum Outcome<T> {
Parsed(T),
Exit(Exit),
}Expand description
The two things dispatching a CLI inside another runtime can do.
Variants§
Parsed(T)
The command line parsed and the host can run it.
Exit(Exit)
The host should print a response and return its status without running the command.
Implementations§
Trait Implementations§
impl<T> Eq for Outcome<T>where
T: Eq,
impl<T> StructuralPartialEq for Outcome<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Outcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for Outcome<T>where
T: RefUnwindSafe,
impl<T> Send for Outcome<T>where
T: Send,
impl<T> Sync for Outcome<T>where
T: Sync,
impl<T> Unpin for Outcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for Outcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Outcome<T>where
T: UnwindSafe,
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