Struct redis_client::redis::RedisClientAsync  
                   
                       [−]
                   
               [src]
pub struct RedisClientAsync {
    // some fields omitted
}Methods
impl RedisClientAsync[src]
fn new(host: &'static str, port: &'static str) -> Result<RedisClientAsync, RedisError>
fn exec_redis_command_async<F>(&mut self, redis_command: &mut RedisCommand, callback: F) -> Result<(), RedisError> where F: Fn(Result<RedisResult, RedisError>), F: Send + 'static
Execute a redis command and. The callback will be done when the command is executed and the pump method is called. The return value indicates if the command was successfully launched.
fn pump(&mut self) -> Result<(), RedisError>
Pump the result and execute the callbacks with them. If no result are ready this function will return.