Trait RequestHandler

Source
pub trait RequestHandler<T = ()> {
    // Required method
    fn handle(
        &self,
        request: Request,
    ) -> impl Future<Output = Result<Response>> + Send;
}
Expand description

A function that takes a request and returns a response.

This is the main building block of a Cot app. You shouldn’t usually need to implement this directly, as it is already implemented for closures and functions that take a Request and return a Result<Response>.

Required Methods§

Source

fn handle( &self, request: Request, ) -> impl Future<Output = Result<Response>> + Send

Handle the request and returns a response.

§Errors

This method can return an error if the request handler fails to handle the request.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, (), P2, P3, P4, P5, P6, P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, (), P3, P4, P5, P6, P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, (), P4, P5, P6, P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, (), P5, P6, P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, (), P6, P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequest + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, P6, (), P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequest + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, (), P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequest + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, (), P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequest + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, P9, (), P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequest + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, ())> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, P10: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, (), P2, P3, P4, P5, P6, P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, (), P3, P4, P5, P6, P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, (), P4, P5, P6, P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, (), P5, P6, P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, P5, (), P6, P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequest + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, P5, P6, (), P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequest + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, (), P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequest + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, (), P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequest + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, P9, ())> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, P9, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, P9)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8, P9) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, P9: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, (), P2, P3, P4, P5, P6, P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, (), P3, P4, P5, P6, P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, (), P4, P5, P6, P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, P4, (), P5, P6, P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, P4, P5, (), P6, P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequest + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, P4, P5, P6, (), P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequest + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, (), P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequest + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8, ())> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, P8, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, P8)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7, P8) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, (), P2, P3, P4, P5, P6, P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, (), P3, P4, P5, P6, P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, P3, (), P4, P5, P6, P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, P3, P4, (), P5, P6, P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, P3, P4, P5, (), P6, P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequest + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, P3, P4, P5, P6, (), P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequest + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7, ())> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, P7, R> RequestHandler<(P1, P2, P3, P4, P5, P6, P7)> for T
where T: Fn(P1, P2, P3, P4, P5, P6, P7) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, (), P2, P3, P4, P5, P6)> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, P2, (), P3, P4, P5, P6)> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, P2, P3, (), P4, P5, P6)> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, P2, P3, P4, (), P5, P6)> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, P2, P3, P4, P5, (), P6)> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequest + Send, P6: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, P2, P3, P4, P5, P6, ())> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, P6, R> RequestHandler<(P1, P2, P3, P4, P5, P6)> for T
where T: Fn(P1, P2, P3, P4, P5, P6) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, R> RequestHandler<(P1, (), P2, P3, P4, P5)> for T
where T: Fn(P1, P2, P3, P4, P5) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, R> RequestHandler<(P1, P2, (), P3, P4, P5)> for T
where T: Fn(P1, P2, P3, P4, P5) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, R> RequestHandler<(P1, P2, P3, (), P4, P5)> for T
where T: Fn(P1, P2, P3, P4, P5) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, R> RequestHandler<(P1, P2, P3, P4, (), P5)> for T
where T: Fn(P1, P2, P3, P4, P5) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, P5: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, R> RequestHandler<(P1, P2, P3, P4, P5, ())> for T
where T: Fn(P1, P2, P3, P4, P5) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, P5, R> RequestHandler<(P1, P2, P3, P4, P5)> for T
where T: Fn(P1, P2, P3, P4, P5) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, R> RequestHandler<(P1, (), P2, P3, P4)> for T
where T: Fn(P1, P2, P3, P4) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, R> RequestHandler<(P1, P2, (), P3, P4)> for T
where T: Fn(P1, P2, P3, P4) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, R> RequestHandler<(P1, P2, P3, (), P4)> for T
where T: Fn(P1, P2, P3, P4) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, P4: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, R> RequestHandler<(P1, P2, P3, P4, ())> for T
where T: Fn(P1, P2, P3, P4) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, P4, R> RequestHandler<(P1, P2, P3, P4)> for T
where T: Fn(P1, P2, P3, P4) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, R> RequestHandler<(P1, (), P2, P3)> for T
where T: Fn(P1, P2, P3) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, R> RequestHandler<(P1, P2, (), P3)> for T
where T: Fn(P1, P2, P3) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, P3: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, R> RequestHandler<(P1, P2, P3, ())> for T
where T: Fn(P1, P2, P3) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, P3, R> RequestHandler<(P1, P2, P3)> for T
where T: Fn(P1, P2, P3) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, R> RequestHandler<(P1, (), P2)> for T
where T: Fn(P1, P2) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, P2: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, R> RequestHandler<(P1, P2, ())> for T
where T: Fn(P1, P2) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, P2, R> RequestHandler<(P1, P2)> for T
where T: Fn(P1, P2) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, P2: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, R> RequestHandler<(P1, ())> for T
where T: Fn(P1) -> R + Clone + Send + Sync + 'static, P1: FromRequest + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, P1, R> RequestHandler<(P1,)> for T
where T: Fn(P1) -> R + Clone + Send + Sync + 'static, P1: FromRequestParts + Send, R: for<'a> Future<Output = Result<Response>> + Send,

Source§

impl<T, R> RequestHandler for T
where T: Fn() -> R + Clone + Send + Sync + 'static, R: for<'a> Future<Output = Result<Response>> + Send,