Skip to main content

BodyWrite

Trait BodyWrite 

Source
pub trait BodyWrite:
    Send
    + Sync
    + Unpin
    + 'static {
    // Required methods
    fn write_all_buf<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        data: &'life1 mut Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn finish<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn write_all_buf<'life0, 'life1, 'async_trait>( &'life0 mut self, data: &'life1 mut Bytes, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn finish<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§