pub trait IntoHandler<E, I> {
    type Handler: Handler<I>;

    // Required method
    fn into_handler(self) -> Self::Handler;
}
Expand description

Trait implemented by types that can be converted to a Handler.

Required Associated Types§

source

type Handler: Handler<I>

The target handler.

Required Methods§

source

fn into_handler(self) -> Self::Handler

Convert self to a Handler.

Implementors§

source§

impl<H, E, O> IntoHandler<E, Request<Body>> for Hwhere E: FromRequest + Send + Sync + 'static, E::Error: IntoResponse + Send + Sync, H: FnExt<E, Output = Result<O>>, O: Send + Sync + 'static,

§

type Handler = FnExtHandler<H, E, O>