Trait embedded_svc::http::server::asynch::Middleware

source ·
pub trait Middleware<C, H>: Send
where 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§

source

type Error: Debug

Required Methods§

source

async fn handle( &self, connection: &mut C, handler: &H, ) -> Result<(), Self::Error>

Provided Methods§

source

fn compose(self, handler: H) -> CompositeHandler<Self, H>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§