pub struct RedisConnection { /* private fields */ }Implementations§
Source§impl RedisConnection
impl RedisConnection
pub async fn new() -> Self
pub async fn command<T: ParseFrom<Value>>( &mut self, command: &str, ) -> RedisResult<T>
Sourcepub async fn write(&mut self, command: &[u8]) -> Result<()>
pub async fn write(&mut self, command: &[u8]) -> Result<()>
write a redis command into the socket.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RedisConnection
impl RefUnwindSafe for RedisConnection
impl Send for RedisConnection
impl Sync for RedisConnection
impl Unpin for RedisConnection
impl UnwindSafe for RedisConnection
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