Skip to main content

CustomMessageWrite

Trait CustomMessageWrite 

Source
pub trait CustomMessageWrite:
    Send
    + Sync
    + Unpin
    + 'static {
    // Required methods
    fn set_write_timeout(&mut self, timeout: Option<Duration>);
    fn write_custom_message<'life0, 'async_trait>(
        &'life0 mut self,
        msg: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn finish_custom<'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 set_write_timeout(&mut self, timeout: Option<Duration>)

Source

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

Source

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

Implementors§