Trait viz_core::IntoHandler

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

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

The 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

Converts self to a Handler.

Implementors§

source§

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

§

type Handler = FnExtHandler<H, E, O>