pub trait HandlerFnOnce<P, T>: 'static {
// Required method
fn handle_inner(self, env: &Environment) -> T;
}Expand description
Function-like trait for single-use handlers that extract parameters from the environment.
P represents the parameter types to extract, T represents the return type.
Required Methods§
Sourcefn handle_inner(self, env: &Environment) -> T
fn handle_inner(self, env: &Environment) -> T
Internal implementation that extracts parameters from the environment and calls the handler.