Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<Args>:
    Send
    + Sync
    + 'static { }
Expand description

Implemented for async fns of arity 0..=8 over FromRequest parameters.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F, Fut, R, A1, A2, A3, A4, A5, A6, A7, A8> Handler<(A1, A2, A3, A4, A5, A6, A7, A8)> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static, A3: FromRequest + 'static, A4: FromRequest + 'static, A5: FromRequest + 'static, A6: FromRequest + 'static, A7: FromRequest + 'static, A8: FromRequest + 'static,

Source§

impl<F, Fut, R, A1, A2, A3, A4, A5, A6, A7> Handler<(A1, A2, A3, A4, A5, A6, A7)> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static, A3: FromRequest + 'static, A4: FromRequest + 'static, A5: FromRequest + 'static, A6: FromRequest + 'static, A7: FromRequest + 'static,

Source§

impl<F, Fut, R, A1, A2, A3, A4, A5, A6> Handler<(A1, A2, A3, A4, A5, A6)> for F
where F: Fn(A1, A2, A3, A4, A5, A6) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static, A3: FromRequest + 'static, A4: FromRequest + 'static, A5: FromRequest + 'static, A6: FromRequest + 'static,

Source§

impl<F, Fut, R, A1, A2, A3, A4, A5> Handler<(A1, A2, A3, A4, A5)> for F
where F: Fn(A1, A2, A3, A4, A5) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static, A3: FromRequest + 'static, A4: FromRequest + 'static, A5: FromRequest + 'static,

Source§

impl<F, Fut, R, A1, A2, A3, A4> Handler<(A1, A2, A3, A4)> for F
where F: Fn(A1, A2, A3, A4) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static, A3: FromRequest + 'static, A4: FromRequest + 'static,

Source§

impl<F, Fut, R, A1, A2, A3> Handler<(A1, A2, A3)> for F
where F: Fn(A1, A2, A3) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static, A3: FromRequest + 'static,

Source§

impl<F, Fut, R, A1, A2> Handler<(A1, A2)> for F
where F: Fn(A1, A2) -> Fut + Clone + Send + Sync + 'static, Fut: Future<Output = R> + Send, R: IntoResponse, A1: FromRequest + 'static, A2: FromRequest + 'static,

Source§

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

Source§

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