pub struct ActorKv { /* private fields */ }Implementations§
Source§impl ActorKv
impl ActorKv
pub async fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
pub async fn put(&self, key: &[u8], value: &[u8]) -> Result<()>
pub async fn delete(&self, key: &[u8]) -> Result<()>
pub async fn batch_get(&self, keys: &[&[u8]]) -> Result<Vec<Option<Vec<u8>>>>
pub async fn batch_put(&self, entries: &[(&[u8], &[u8])]) -> Result<()>
pub async fn batch_delete(&self, keys: &[&[u8]]) -> Result<()>
pub async fn delete_range(&self, start: &[u8], end: &[u8]) -> Result<()>
pub async fn list_prefix( &self, prefix: &[u8], opts: ListOpts, ) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
pub async fn list_range( &self, start: &[u8], end: &[u8], opts: ListOpts, ) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ActorKv
impl !UnwindSafe for ActorKv
impl Freeze for ActorKv
impl Send for ActorKv
impl Sync for ActorKv
impl Unpin for ActorKv
impl UnsafeUnpin for ActorKv
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