Trait embedded_svc::http::server::asynch::Middleware
source · pub trait Middleware<C, H>: Sendwhere
C: Connection,
H: Handler<C>,{
type Error: Debug;
// Required method
async fn handle(
&self,
connection: &mut C,
handler: &H,
) -> Result<(), Self::Error>;
// Provided method
fn compose(self, handler: H) -> CompositeHandler<Self, H>
where Self: Sized { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn compose(self, handler: H) -> CompositeHandler<Self, H>where
Self: Sized,
Object Safety§
This trait is not object safe.