pub struct MultiplexedPool { /* private fields */ }Expand description
Multiplexed connection pool - uses a single connection with mpsc channel
Implementations§
Source§impl MultiplexedPool
impl MultiplexedPool
Sourcepub async fn new(
config: ConnectionConfig,
host: String,
port: u16,
) -> RedisResult<Self>
pub async fn new( config: ConnectionConfig, host: String, port: u16, ) -> RedisResult<Self>
Create a new multiplexed pool
Sourcepub async fn execute_command(
&self,
command: String,
args: Vec<RespValue>,
) -> RedisResult<RespValue>
pub async fn execute_command( &self, command: String, args: Vec<RespValue>, ) -> RedisResult<RespValue>
Execute a command through the multiplexed connection
Auto Trait Implementations§
impl Freeze for MultiplexedPool
impl RefUnwindSafe for MultiplexedPool
impl Send for MultiplexedPool
impl Sync for MultiplexedPool
impl Unpin for MultiplexedPool
impl UnsafeUnpin for MultiplexedPool
impl UnwindSafe for MultiplexedPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more