pub enum ActionResult {
Done,
ParentActionRequest(Command, Context),
Result(Command, Context),
Custom(Box<dyn Debug>),
}Expand description
ActionResult stores result of action.
Commandのアクション結果を格納し、runの結果として返却するためのenum。
Variants§
Done
Done shows that action is done.
ParentActionRequest(Command, Context)
ParentActionRequest shows that action requested to show help.
It is mainly used for help command.
Result(Command, Context)
Shows return Context, reached Command and Action as result for parse and run.
By using this, it is possible to get parse result and run action without keeping command instances of tree in memory.
Custom(Box<dyn Debug>)
Custom result(can have Box including dyn Debug).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionResult
impl !RefUnwindSafe for ActionResult
impl !Send for ActionResult
impl !Sync for ActionResult
impl Unpin for ActionResult
impl UnsafeUnpin for ActionResult
impl !UnwindSafe for ActionResult
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