Skip to main content

AppCommand

Trait AppCommand 

Source
pub trait AppCommand<A>: Send + 'static {
    // Required methods
    fn name(&self) -> &'static str;
    fn apply(
        &mut self,
        dispatch: &mut Dispatch<'_, A>,
    ) -> Result<Outcome, Rejection>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn apply( &mut self, dispatch: &mut Dispatch<'_, A>, ) -> Result<Outcome, Rejection>

Implementors§