pub struct CKeyLockConnection { /* private fields */ }
Implementations§
Source§impl CKeyLockConnection
impl CKeyLockConnection
pub async fn set(&self, key: Vec<u8>, value: Vec<u8>) -> Result<Vec<u8>, Error>
pub async fn get(&self, key: Vec<u8>) -> Result<Option<Vec<u8>>, Error>
pub async fn batch_get( &self, keys: Vec<Vec<u8>>, ) -> Result<Vec<Option<Vec<u8>>>, Error>
pub async fn delete(&self, key: Vec<u8>) -> Result<Option<Vec<u8>>, Error>
pub async fn list(&self) -> Result<Vec<Vec<u8>>, Error>
pub async fn exists(&self, key: Vec<u8>) -> Result<bool, Error>
pub async fn count(&self) -> Result<usize, Error>
pub async fn clear(&self) -> Result<(), Error>
pub async fn close(&self) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for CKeyLockConnection
impl !RefUnwindSafe for CKeyLockConnection
impl Send for CKeyLockConnection
impl Sync for CKeyLockConnection
impl Unpin for CKeyLockConnection
impl !UnwindSafe for CKeyLockConnection
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