pub struct SqliteStore { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for SqliteStore
impl Clone for SqliteStore
source§fn clone(&self) -> SqliteStore
fn clone(&self) -> SqliteStore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SqliteStore
impl Debug for SqliteStore
source§impl KeyValueStore for SqliteStore
impl KeyValueStore for SqliteStore
fn new(location: PathBuf) -> Result<Self, Error>
fn partition(&mut self, paths: PathBuf) -> Result<&mut dyn KeyValueStore, Error>
fn get_partition(&self, paths: PathBuf) -> Option<&dyn KeyValueStore>
fn clear(&mut self) -> Result<(), Error>
fn delete(&mut self, key: &[u8]) -> Result<(), Error>
fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error>
fn set(&mut self, key: &[u8], value: &[u8]) -> Result<(), Error>
fn get_all(&self) -> Result<Vec<(Vec<u8>, Vec<u8>)>, Error>
fn keys(&self) -> Result<Vec<Vec<u8>>, Error>
fn values(&self) -> Result<Vec<Vec<u8>>, Error>
fn location(&self) -> PathBuf
Auto Trait Implementations§
impl Freeze for SqliteStore
impl RefUnwindSafe for SqliteStore
impl Send for SqliteStore
impl Sync for SqliteStore
impl Unpin for SqliteStore
impl UnwindSafe for SqliteStore
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)