Struct hiredis::Context [] [src]

pub struct Context {
    // some fields omitted
}

A context.

Methods

impl Context
[src]

fn new(address: &str, port: usize) -> Result<Context>

Create a context by establishing connection to a server.

fn command<T: AsBytes>(&mut self, arguments: &[T]) -> Result<Reply>

Issue a command.

fn reconnect(&mut self) -> Result<()>

Reconnect to the server.

Trait Implementations

impl Drop for Context
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more