Trait RequestWriter

Source
pub trait RequestWriter: Send + Sync {
    // Required method
    fn write<'life0, 'async_trait>(
        &'life0 mut self,
        req: Request,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait to write a client request.

Describes how a request should be sent by a client.

Required Methods§

Source

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

Write the given client request.

Implementors§

Source§

impl RequestWriter for TcpHandler

Available on crate features tcp-client and client only.