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