Trait poem::middleware::Middleware [−][src]
pub trait Middleware<E: Endpoint> { type Output: Endpoint; fn transform(self, ep: E) -> Self::Output; }
Expand description
Represents a middleware trait.
Associated Types
New endpoint type.
If you don’t know what type to use, then you can use Box<dyn Endpoint>
, which will bring some performance loss, but it is
insignificant.