Trait brigadier_rs::TaskLogic
source · 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.