pub trait Handler<Args, T = ()>: 'static {
// Required method
fn call(&mut self, env: &Environment) -> T;
}Expand description
A repeatable handler that can extract arguments from the environment.
Required Methods§
Sourcefn call(&mut self, env: &Environment) -> T
fn call(&mut self, env: &Environment) -> T
Invokes the handler using values extracted from env.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".