pub trait Handler:
'static
+ Send
+ Sync {
// Required method
fn handles(
&self,
request: &Request<Body>,
) -> Option<BoxFuture<'_, Response<Body>>>;
}Expand description
Base trait that all Handlers implement.