Trait darpi::Handler [−][src]
Required methods
#[must_use]pub fn call<'async_trait>(
self,
args: Args<'a, C>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
self,
args: Args<'a, C>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
Self: 'async_trait,
Implementors
impl<'a, C, F, Fut> Handler<'a, C> for F where
C: 'static + Sync + Send,
F: FnOnce(Args<'a, C>) -> Fut + Sync + Send + 'static,
Fut: Future<Output = Result<Response<Body>, Infallible>> + Sync + Send + 'static,
[src]
C: 'static + Sync + Send,
F: FnOnce(Args<'a, C>) -> Fut + Sync + Send + 'static,
Fut: Future<Output = Result<Response<Body>, Infallible>> + Sync + Send + 'static,