pub trait Middleware<E: Endpoint> { type Output: Endpoint; // Required method fn transform(&self, ep: E) -> Self::Output; }
Transform the input Endpoint to another one.
Endpoint