pub trait Layer<S> {
type Service;
// Required method
fn layer(&self, inner: S) -> Self::Service;
}
Expand description
A layer that produces a Layered service (middleware(inner service)).
Required Associated Types§
type Service
type Service
The service produced by the layer.