Trait Function

Source
pub trait Function: Send + Sync {
    // Required method
    fn call<'life0, 'async_trait>(
        &'life0 self,
        parts: Parts,
        body: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Full<Bytes>>, InvocationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn call<'life0, 'async_trait>( &'life0 self, parts: Parts, body: Bytes, ) -> Pin<Box<dyn Future<Output = Result<Response<Full<Bytes>>, InvocationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§