Trait micro_http::handler::Handler
source · pub trait Handler<ReqBody> {
type RespBody: Body;
type Error: Into<Box<dyn Error + Send + Sync>>;
type Future: Future<Output = Result<Response<Self::RespBody>, Self::Error>>;
// Required methods
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>;
fn call(&self, req: Request<ReqBody>) -> Self::Future;
}