Enum redis_glue::RedisConnection[][src]

pub enum RedisConnection {
    Single(Rc<RefCell<Connection>>),
    Cluster(Rc<RefCell<ClusterConnection>>),
}

Redis connection - manages both single and clustered deployments

Variants

Single(Rc<RefCell<Connection>>)
Cluster(Rc<RefCell<ClusterConnection>>)

Implementations

impl RedisConnection[src]

pub fn get_client(&self) -> Self[src]

Get client. Uses interior mutability, so lookout for panics

pub async fn exec<T: FromRedisValue>(&self, cmd: &mut Cmd) -> RedisResult<T>[src]

execute a redis command against a Self

pub async fn ping(&self) -> bool[src]

Trait Implementations

impl Clone for RedisConnection[src]

Auto Trait Implementations

impl !RefUnwindSafe for RedisConnection

impl !Send for RedisConnection

impl !Sync for RedisConnection

impl Unpin for RedisConnection

impl !UnwindSafe for RedisConnection

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,