Trait burger::Middleware
source · pub trait Middleware<S> {
type Service;
// Required method
fn apply(self, svc: S) -> Self::Service;
}
Expand description
A middleware, used to incrementally add behaviour to a Service
.
pub trait Middleware<S> {
type Service;
// Required method
fn apply(self, svc: S) -> Self::Service;
}
A middleware, used to incrementally add behaviour to a Service
.