pub trait Handler:
Send
+ Sync
+ 'static {
// Required method
fn handle(&self, _: &mut Request<'_, '_>) -> Result<Response, IronError>;
}
Expand description
Handler
s are responsible for handling requests by creating Responses from Requests.