Trait embedded_svc::http::server::asynch::Handler

source ·
pub trait Handler<C>: Send
where C: Connection,
{ type Error: Debug; // Required method async fn handle(&self, connection: &mut C) -> Result<(), Self::Error>; }

Required Associated Types§

source

type Error: Debug

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<H, C> Handler<C> for &H
where C: Connection, H: Handler<C> + Send + Sync,

§

type Error = <H as Handler<C>>::Error

source§

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

Implementors§

source§

impl<M, H, C> Handler<C> for CompositeHandler<M, H>
where M: Middleware<C, H>, H: Handler<C>, C: Connection,

§

type Error = <M as Middleware<C, H>>::Error