pub trait RequestHandler: Send + Sync {
// Required method
fn handle(&self, request: &mut Request) -> Result<Response, HttpError>;
}Expand description
Turns a request into a response or an error for the exception mapper.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".