pub trait ConnectionLike {
// Required methods
fn req_packed_command<'a>(
&'a mut self,
cmd: &'a Cmd,
) -> RedisFuture<'a, Value>;
fn get_db(&self) -> i64;
}Expand description
An async abstraction over connections.
Required Methods§
Sourcefn req_packed_command<'a>(&'a mut self, cmd: &'a Cmd) -> RedisFuture<'a, Value>
fn req_packed_command<'a>(&'a mut self, cmd: &'a Cmd) -> RedisFuture<'a, Value>
Sends an already encoded (packed) command into the TCP socket and reads the single response from it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".