Trait viz_core::handler::IntoHandler

source ·
pub trait IntoHandler<I, E> {
    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<I, H, E, O> IntoHandler<I, E> for H
where I: Send + 'static, E: FromRequest + 'static, E::Error: IntoResponse, H: FnExt<I, E, Output = Result<O>>, O: 'static,

§

type Handler = FnExtHandler<H, E, O>