Struct ajars_actix_web::JsonHandlerWrapper [−][src]
pub struct JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
R: Future<Output = Result<Json<O>, E>>,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static, { /* fields omitted */ }
Implementations
impl<H, D, R, E, I, O> JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
R: Future<Output = Result<Json<O>, E>>,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static,
impl<H, D, R, E, I, O> JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
R: Future<Output = Result<Json<O>, E>>,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static,
Trait Implementations
impl<H, D, R, E, I, O> Clone for JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
R: Future<Output = Result<Json<O>, E>>,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static,
impl<H, D, R, E, I, O> Clone for JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
R: Future<Output = Result<Json<O>, E>>,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static,
impl<H, D, R, E, I, O> Handler<(HttpRequest, Data<D>, Json<I>), R> for JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
D: 'static,
R: Future<Output = Result<Json<O>, E>> + 'static,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static,
impl<H, D, R, E, I, O> Handler<(HttpRequest, Data<D>, Json<I>), R> for JsonHandlerWrapper<H, D, R, E, I, O> where
H: Handler<D, R, E, I, O> + Clone + 'static,
D: 'static,
R: Future<Output = Result<Json<O>, E>> + 'static,
E: ResponseError + 'static,
I: Serialize + DeserializeOwned + 'static,
O: Serialize + DeserializeOwned + 'static,
Auto Trait Implementations
impl<H, D, R, E, I, O> RefUnwindSafe for JsonHandlerWrapper<H, D, R, E, I, O> where
D: RefUnwindSafe,
E: RefUnwindSafe,
H: RefUnwindSafe,
I: RefUnwindSafe,
O: RefUnwindSafe,
R: RefUnwindSafe,
impl<H, D, R, E, I, O> Send for JsonHandlerWrapper<H, D, R, E, I, O> where
D: Send,
E: Send,
H: Send,
I: Send,
O: Send,
R: Send,
impl<H, D, R, E, I, O> Sync for JsonHandlerWrapper<H, D, R, E, I, O> where
D: Sync,
E: Sync,
H: Sync,
I: Sync,
O: Sync,
R: Sync,
impl<H, D, R, E, I, O> Unpin for JsonHandlerWrapper<H, D, R, E, I, O> where
D: Unpin,
E: Unpin,
H: Unpin,
I: Unpin,
O: Unpin,
R: Unpin,
impl<H, D, R, E, I, O> UnwindSafe for JsonHandlerWrapper<H, D, R, E, I, O> where
D: UnwindSafe,
E: UnwindSafe,
H: UnwindSafe,
I: UnwindSafe,
O: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V