Struct redis::aio::MultiplexedConnection [−][src]
pub struct MultiplexedConnection { /* fields omitted */ }This is supported on crate feature
aio only.Expand description
A connection object which can be cloned, allowing requests to be be sent concurrently on the same underlying connection (tcp/unix socket).
Implementations
pub async fn new<C>(
connection_info: &ConnectionInfo,
stream: C
) -> RedisResult<(Self, impl Future<Output = ()>)> where
C: Unpin + AsyncRead + AsyncWrite + Send + 'static, [src]
pub async fn new<C>(
connection_info: &ConnectionInfo,
stream: C
) -> RedisResult<(Self, impl Future<Output = ()>)> where
C: Unpin + AsyncRead + AsyncWrite + Send + 'static, [src]Constructs a new MultiplexedConnection out of a AsyncRead + AsyncWrite object
and a ConnectionInfo
Trait Implementations
Sends an already encoded (packed) command into the TCP socket and reads the single response from it. Read more
fn req_packed_commands<'a>(
&'a mut self,
cmd: &'a Pipeline,
offset: usize,
count: usize
) -> RedisFuture<'a, Vec<Value>>[src]
fn req_packed_commands<'a>(
&'a mut self,
cmd: &'a Pipeline,
offset: usize,
count: usize
) -> RedisFuture<'a, Vec<Value>>[src]Sends multiple already encoded (packed) command into the TCP socket
and reads count responses from it. This is used to implement
pipelining. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MultiplexedConnectionimpl Send for MultiplexedConnectionimpl Sync for MultiplexedConnectionimpl Unpin for MultiplexedConnectionimpl !UnwindSafe for MultiplexedConnectionBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V