Trait HandlerFuncParam

Source
pub trait HandlerFuncParam<Param>: Send {
    // Required method
    fn call<'async_trait>(
        self,
        request: Request,
    ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn call<'async_trait>( self, request: Request, ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§

Source§

impl<Func, Fut, Res> HandlerFuncParam<((),)> for Func
where Func: FnOnce() -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, P11: FromRequestParts + Send, P12: FromRequestParts + Send, P13: FromRequestParts + Send, P14: FromRequestParts + Send, P15: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, P11: FromRequestParts + Send, P12: FromRequestParts + Send, P13: FromRequestParts + Send, P14: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, P11: FromRequestParts + Send, P12: FromRequestParts + Send, P13: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, P11: FromRequestParts + Send, P12: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, P11: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, 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, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, P8, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, P8, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, P8, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, P8: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, P7, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, P7, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, P7, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, P7: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, P6, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, P6, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, P6, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, P6: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, P5, T> HandlerFuncParam<(P0, P1, P2, P3, P4, P5, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, P5, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, P5: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, P4, T> HandlerFuncParam<(P0, P1, P2, P3, P4, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, P4, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, P4: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, P3, T> HandlerFuncParam<(P0, P1, P2, P3, T)> for Func
where Func: FnOnce(P0, P1, P2, P3, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, P3: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, P2, T> HandlerFuncParam<(P0, P1, P2, T)> for Func
where Func: FnOnce(P0, P1, P2, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, P2: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, P1, T> HandlerFuncParam<(P0, P1, T)> for Func
where Func: FnOnce(P0, P1, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, P1: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, P0, T> HandlerFuncParam<(P0, T)> for Func
where Func: FnOnce(P0, T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, P0: FromRequestParts + Send, T: FromRequest + Send,

Source§

impl<Func, Fut, Res, T> HandlerFuncParam<(T,)> for Func
where Func: FnOnce(T) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, T: FromRequest + Send,