pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn open(config: StoreConfig) -> Result<Self, StoreError>
pub fn put_bytes(&self, key: &str, value: &[u8]) -> Result<bool, StoreError>
pub fn get_bytes(&self, key: &str) -> Result<Option<Vec<u8>>, StoreError>
pub fn delete(&self, key: &str) -> Result<bool, StoreError>
pub fn list_prefix( &self, prefix: &str, limit: usize, ) -> Result<Vec<KeyValue>, StoreError>
pub fn list_prefix_after( &self, prefix: &str, start_after: Option<&str>, limit: usize, ) -> Result<Vec<KeyValue>, StoreError>
pub fn flush(&self) -> Result<(), StoreError>
pub fn stats(&self) -> StoreStats
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Store
impl !UnwindSafe for Store
impl Freeze for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
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