[][src]Struct redis::aio::Connection

pub struct Connection<C = Pin<Box<dyn AsyncStream + Send + Sync>>> { /* fields omitted */ }
This is supported on crate feature aio only.

Represents a stateful redis TCP connection.

Implementations

impl<C> Connection<C> where
    C: Unpin + AsyncRead + AsyncWrite + Send
[src]

pub fn into_pubsub(self) -> PubSub<C>[src]

Converts this Connection into PubSub.

Trait Implementations

impl<C> ConnectionLike for Connection<C> where
    C: Unpin + AsyncRead + AsyncWrite + Send
[src]

Auto Trait Implementations

impl<C = Pin<Box<dyn AsyncStream + 'static + Send + Sync, Global>>> !RefUnwindSafe for Connection<C>[src]

impl<C> Send for Connection<C> where
    C: Send
[src]

impl<C> Sync for Connection<C> where
    C: Sync
[src]

impl<C> Unpin for Connection<C> where
    C: Unpin
[src]

impl<C = Pin<Box<dyn AsyncStream + 'static + Send + Sync, Global>>> !UnwindSafe for Connection<C>[src]

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, 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>,