pub struct Client { /* private fields */ }Implementations
sourceimpl Client
impl Client
pub async fn connect<A: ToSocketAddrs>(addr: A) -> Result<Self>
pub async fn ping(&mut self) -> Result<()>
pub async fn get(&mut self, key: Vec<u8>) -> Result<Option<Vec<u8>>>
pub async fn set(
&mut self,
key: Vec<u8>,
value: Vec<u8>,
option: SetOption
) -> Result<bool>
pub async fn get_set(
&mut self,
key: Vec<u8>,
value: Vec<u8>,
option: SetOption
) -> Result<Option<Vec<u8>>>
pub async fn flush_all(&mut self, sync: bool) -> Result<()>
pub async fn del(&mut self, keys: Vec<Vec<u8>>) -> Result<i64>
pub async fn mset(&mut self, kvs: Vec<(Vec<u8>, Vec<u8>)>) -> Result<()>
pub async fn msetnx(&mut self, kvs: Vec<(Vec<u8>, Vec<u8>)>) -> Result<bool>
pub async fn mget(&mut self, keys: Vec<Vec<u8>>) -> Result<Vec<Option<Vec<u8>>>>
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more