Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<T, Req, State, Res>:
    Clone
    + Send
    + Sync
    + Sized
    + 'static
where State: Send,
{ type Future: Future<Output = Option<Res>> + Send; // Required method fn call(&self, bundle: &mut Bundle<Req, State, Res>) -> Self::Future; }
Expand description

A handler that takes extracted parameters and returns a future yielding a response.

Required Associated Types§

Source

type Future: Future<Output = Option<Res>> + Send

The future produced when calling the handler.

Required Methods§

Source

fn call(&self, bundle: &mut Bundle<Req, State, Res>) -> Self::Future

Call the handler with the bundle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static, T11: FromRequest<Req, State, Res> + Send + 'static, T12: FromRequest<Req, State, Res> + Send + 'static, T13: FromRequest<Req, State, Res> + Send + 'static, T14: FromRequest<Req, State, Res> + Send + 'static, T15: FromRequest<Req, State, Res> + Send + 'static, T16: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static, T11: FromRequest<Req, State, Res> + Send + 'static, T12: FromRequest<Req, State, Res> + Send + 'static, T13: FromRequest<Req, State, Res> + Send + 'static, T14: FromRequest<Req, State, Res> + Send + 'static, T15: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static, T11: FromRequest<Req, State, Res> + Send + 'static, T12: FromRequest<Req, State, Res> + Send + 'static, T13: FromRequest<Req, State, Res> + Send + 'static, T14: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static, T11: FromRequest<Req, State, Res> + Send + 'static, T12: FromRequest<Req, State, Res> + Send + 'static, T13: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static, T11: FromRequest<Req, State, Res> + Send + 'static, T12: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static, T11: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static, T10: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8, T9), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static, T9: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8> Handler<((), T1, T2, T3, T4, T5, T6, T7, T8), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static, T8: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7> Handler<((), T1, T2, T3, T4, T5, T6, T7), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static, T7: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5, T6> Handler<((), T1, T2, T3, T4, T5, T6), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static, T6: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4, T5> Handler<((), T1, T2, T3, T4, T5), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static, T5: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3, T4> Handler<((), T1, T2, T3, T4), Req, State, Res> for F
where F: Fn(T1, T2, T3, T4) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static, T4: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2, T3> Handler<((), T1, T2, T3), Req, State, Res> for F
where F: Fn(T1, T2, T3) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static, T3: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1, T2> Handler<((), T1, T2), Req, State, Res> for F
where F: Fn(T1, T2) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static, T2: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res, T1> Handler<((), T1), Req, State, Res> for F
where F: Fn(T1) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static, T1: FromRequest<Req, State, Res> + Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Fut, Output, Req, State, Res> Handler<((),), Req, State, Res> for F
where F: Fn() -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Output> + Send + 'static, Output: IntoResponse<Res> + 'static, Req: Send + 'static, State: Send + 'static, Res: Send + 'static,

Source§

type Future = Pin<Box<dyn Future<Output = Option<Res>> + Send>>

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send, T11: FromRequest<Req, State, Res> + Send, T12: FromRequest<Req, State, Res> + Send, T13: FromRequest<Req, State, Res> + Send, T14: FromRequest<Req, State, Res> + Send, T15: FromRequest<Req, State, Res> + Send, T16: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send, T11: FromRequest<Req, State, Res> + Send, T12: FromRequest<Req, State, Res> + Send, T13: FromRequest<Req, State, Res> + Send, T14: FromRequest<Req, State, Res> + Send, T15: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send, T11: FromRequest<Req, State, Res> + Send, T12: FromRequest<Req, State, Res> + Send, T13: FromRequest<Req, State, Res> + Send, T14: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send, T11: FromRequest<Req, State, Res> + Send, T12: FromRequest<Req, State, Res> + Send, T13: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send, T11: FromRequest<Req, State, Res> + Send, T12: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send, T11: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send, T10: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8, T9> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8, T9)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send, T9: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7, T8> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7, T8)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send, T8: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6, T7> Handler<Option<((), T1, T2, T3, T4, T5, T6, T7)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send, T7: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5, T6> Handler<Option<((), T1, T2, T3, T4, T5, T6)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5, T6) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send, T6: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4, T5> Handler<Option<((), T1, T2, T3, T4, T5)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4, T5) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send, T5: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3, T4> Handler<Option<((), T1, T2, T3, T4)>, Req, State, Res> for F
where F: Fn(T1, T2, T3, T4) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send, T4: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2, T3> Handler<Option<((), T1, T2, T3)>, Req, State, Res> for F
where F: Fn(T1, T2, T3) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send, T3: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1, T2> Handler<Option<((), T1, T2)>, Req, State, Res> for F
where F: Fn(T1, T2) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send, T2: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res, T1> Handler<Option<((), T1)>, Req, State, Res> for F
where F: Fn(T1) -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send, T1: FromRequest<Req, State, Res> + Send,

Source§

impl<F, Output, Req, State, Res> Handler<Option<()>, Req, State, Res> for F
where F: Fn() -> Output + Clone + Send + Sync + 'static, Output: IntoResponse<Res> + 'static, Req: Send, State: Send, Res: Send,