pub trait Wrap<S> { type Service; // Required method fn wrap(self, service: S) -> Self::Service; }
包裹服务,转换服务的请求和响应。
包裹后的服务。
包裹给定的服务,返回一个包裹后的新服务。