kvarn::extensions

Trait ResponsePipeFutureCall

source
pub trait ResponsePipeFutureCall: KvarnSendSync {
    // Required method
    fn call<'a>(
        &'a mut self,
        response_body_pipe: &'a mut ResponseBodyPipe,
        host: &'a Host,
    ) -> RetFut<'a, ()>;
}
Expand description

Implement this to pass your future to FatResponse::with_future.

Required Methods§

source

fn call<'a>( &'a mut self, response_body_pipe: &'a mut ResponseBodyPipe, host: &'a Host, ) -> RetFut<'a, ()>

§Arguments
  • A mutable reference to the ResponseBodyPipe.
  • An immutable reference to the host this request is to.

Implementors§