pub trait CxAwareAsyncRequestHandler<Dep, Req, Res> {
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: Req,
        dep: &'life1 Dep
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Available on crate feature async only.
Expand description

Handles the request Req asynchronously. Implemented by the user. Gives access to the dependency Dep.

Required Methods

Implementors