pub trait Handler<C, R, O, E, Params> {
// Required method
fn run(
&self,
context: &mut C,
resources: &mut R,
) -> Result<O, StageError<E>>;
}Expand description
Adapts a typed command function to a uniform resource-aware invocation.
Params is a tuple of SystemParam marker types. Implementations are
provided for functions with zero through eight injected arguments. Most
applications create the adapter through crate::command!.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".