pub trait Handler<T>: 'static {
// Required method
fn handle(&mut self, env: &Environment) -> T;
}Expand description
Handler trait that processes an environment and produces a result of type T.
This trait is implemented by handlers that don’t modify themselves during execution.
Required Methods§
Sourcefn handle(&mut self, env: &Environment) -> T
fn handle(&mut self, env: &Environment) -> T
Processes the environment and returns a value of type T.
§Arguments
env- The environment containing request data and context