Trait redis_client::commands::PubSubCommandAsync [] [src]

pub trait PubSubCommandAsync {
    fn subscribe<C: ToString, G: Fn(Result<RedisResult, RedisError>), S: Fn(RedisResult)>(
        &mut self,
        channel: C,
        cmd_callback: G,
        callback: S
    ) -> Result<(), RedisError>
    where
        G: Send + 'static,
        S: Send + 'static
; fn psubscribe<C: ToString, G: Fn(Result<RedisResult, RedisError>), S: Fn(RedisResult)>(
        &mut self,
        channel: C,
        cmd_callback: G,
        callback: S
    ) -> Result<(), RedisError>
    where
        G: Send + 'static,
        S: Send + 'static
; fn publish<C: ToString, M: ToString, G: Fn(Result<RedisResult, RedisError>)>(
        &mut self,
        channel: C,
        message: M,
        cmd_callback: G
    ) -> Result<(), RedisError>
    where
        G: Send + 'static
; }

Required Methods

Implementors