pub trait AsyncRequestHandler<Req, Res>where
Self: Sync,{
// Required method
fn handle<'life0, 'async_trait>(
&'life0 self,
req: Req,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
async only.Expand description
Handles the request Req asynchronously.
Implemented by the user.