Trait darpi::Handler[][src]

pub trait Handler<'a, C> where
    C: 'static + Sync + Send
{ #[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
; }

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]

Loading content...

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]

Loading content...