Struct redis_client::redis::PubSubClientAsync [] [src]

pub struct PubSubClientAsync { /* fields omitted */ }

Methods

impl PubSubClientAsync
[src]

A PubSubClientAsync is a structure to use redis publish/subscribe functionnality.

When creating a PubSubClientAsync it will automatically create a connection. Therefore when it is created it uses the host and the port.

Example:

let mut client = try!(redis_client::PubSubClientAsync::new("127.0.0.1", "6379"));

Execute a redis command. The cmd_callback will be called once the command execution is over and the pump method is called. The return value indicates if the command was successfully launched.

Pump the result and the received value and execute the callbacks with them. If no result or received value are ready this function will return.

Trait Implementations

impl PubSubCommandAsync for PubSubClientAsync
[src]

impl Debug for PubSubClientAsync
[src]

Formats the value using the given formatter.

impl Display for PubSubClientAsync
[src]

Formats the value using the given formatter. Read more