Trait esp_idf_svc::http::server::Middleware

source ·
pub trait Middleware<C, H>: Send
where C: Connection, H: Handler<C>,
{ type Error: Debug; // Required method 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

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,

Implementors§