pub struct StoreKVPool { /* private fields */ }Implementations§
Source§impl StoreKVPool
impl StoreKVPool
pub fn new(kv_store_config: Arc<ConfigStoreKV>) -> Self
pub fn count(&self) -> usize
pub fn lock_read_access<'a>(&'a self) -> RwLockReadGuard<'a, ()>
pub fn lock_write_access<'a>(&'a self) -> RwLockWriteGuard<'a, ()>
pub fn acquire( &self, mode: StoreKVAcquireMode, collection: impl AsRef<str>, ) -> Result<Option<Arc<StoreKV>>, ()>
pub fn janitor(&self)
pub fn backup(&self, path: &Path) -> Result<(), Error>
pub fn restore(&self, path: &Path) -> Result<(), Error>
pub fn flush(&self, force: bool)
Trait Implementations§
Source§impl Clone for StoreKVPool
impl Clone for StoreKVPool
Source§fn clone(&self) -> StoreKVPool
fn clone(&self) -> StoreKVPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StoreKVPool
impl RefUnwindSafe for StoreKVPool
impl Send for StoreKVPool
impl Sync for StoreKVPool
impl Unpin for StoreKVPool
impl UnsafeUnpin for StoreKVPool
impl UnwindSafe for StoreKVPool
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