Wrap

Trait Wrap 

Source
pub trait Wrap<S> {
    type Service;

    // Required method
    fn wrap(self, service: S) -> Self::Service;
}
Expand description

包裹服务,转换服务的请求和响应。

Required Associated Types§

Source

type Service

包裹后的服务。

Required Methods§

Source

fn wrap(self, service: S) -> Self::Service

包裹给定的服务,返回一个包裹后的新服务。

Implementors§