Trait RequestReader

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

Trait to read a client request.

Describes how a request should be parsed by a server.

Required Methods§

Source

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

Read the current client request.

Implementors§

Source§

impl RequestReader for TcpHandler

Available on crate features tcp-binder and server only.