pub trait Layer<S> { type Service; // Required method fn layer(self, inner: S) -> Self::Service; }
Decorates a Service
The wrapped service
Wrap the given service with the middleware, returning a new service that has been decorated with the middleware.