Trait micro_http::handler::Handler
source · pub trait Handler: Send + Sync {
type RespBody: Body;
type Error: Into<Box<dyn Error + Send + Sync>>;
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
req: Request<ReqBody>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RespBody>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}