ProtocolConnection

Trait ProtocolConnection 

Source
pub trait ProtocolConnection {
    // Required methods
    fn send_command<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        command: &'life1 RespValue,
    ) -> Pin<Box<dyn Future<Output = RedisResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn read_response<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = RedisResult<RespValue>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for connections that support protocol negotiation

Required Methods§

Source

fn send_command<'life0, 'life1, 'async_trait>( &'life0 mut self, command: &'life1 RespValue, ) -> Pin<Box<dyn Future<Output = RedisResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send a command to the server

Source

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

Read a response from the server

Implementors§