pub trait TaskLogic<S, O> {
    type Error: Into<Error>;
    type Output;

    fn run(&self, source: S, args: O) -> Result<Self::Output, Self::Error>;
}
Expand description

Command logic definition trait (with arguments).

Executes command logic. This type receives propagated arguments from parsers upstream.

Fn-closures implement this trait.

Required Associated Types

Error type this logic may return

Return value upon success

Required Methods

Implementors