Struct redis::async::SharedConnection [−][src]
pub struct SharedConnection { /* fields omitted */ }
Methods
impl SharedConnection
[src]
impl SharedConnection
pub fn new(con: Connection) -> RedisFuture<Self>
[src]
pub fn new(con: Connection) -> RedisFuture<Self>
Trait Implementations
impl Clone for SharedConnection
[src]
impl Clone for SharedConnection
fn clone(&self) -> SharedConnection
[src]
fn clone(&self) -> SharedConnection
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl ConnectionLike for SharedConnection
[src]
impl ConnectionLike for SharedConnection
fn req_packed_command(self, cmd: Vec<u8>) -> RedisFuture<(Self, Value)>
[src]
fn req_packed_command(self, cmd: Vec<u8>) -> RedisFuture<(Self, Value)>
Sends an already encoded (packed) command into the TCP socket and reads the single response from it. Read more
fn req_packed_commands(
self,
cmd: Vec<u8>,
offset: usize,
count: usize
) -> RedisFuture<(Self, Vec<Value>)>
[src]
fn req_packed_commands(
self,
cmd: Vec<u8>,
offset: usize,
count: usize
) -> RedisFuture<(Self, Vec<Value>)>
Sends multiple already encoded (packed) command into the TCP socket and reads count
responses from it. This is used to implement pipelining. Read more
fn get_db(&self) -> i64
[src]
fn get_db(&self) -> i64
Returns the database this connection is bound to. Note that this information might be unreliable because it's initially cached and also might be incorrect if the connection like object is not actually connected. Read more
Auto Trait Implementations
impl Send for SharedConnection
impl Send for SharedConnection
impl Sync for SharedConnection
impl Sync for SharedConnection