pub trait Handler<Args> { type Future: Future<Output = Response<Body>> + Send; // Required method fn call(&self, args: Args) -> Self::Future; }
Handler trait - 用于处理 HTTP 请求