Struct redis_client::reader::Reader [] [src]

pub struct Reader;

Reads the TcpStream buffer and parse the result according to the redis protocol specification building either RedisResult or RedisError.

Methods

impl Reader

fn read(buffer: &mut BufReader<TcpStream>) -> Result<RedisResult, RedisError>

Read the stream expecting one response. Determine the type of the response

fn read_pipeline(buffer: &mut BufReader<TcpStream>, cmd_nb: usize) -> Result<Vec<RedisResult>, RedisError>

Read the stream and expect several responses