IntoHandler

Trait 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,