pub struct StoreFSTPool {
pub fst_action_config: StoreFSTActionConfig,
/* private fields */
}Fields§
§fst_action_config: StoreFSTActionConfigImplementations§
Source§impl StoreFSTPool
impl StoreFSTPool
pub fn new( fst_store_config: Arc<ConfigStoreFST>, fst_action_config: StoreFSTActionConfig, ) -> Self
pub fn count(&self) -> (usize, usize)
pub fn lock_read_access<'a>(&'a self) -> RwLockReadGuard<'a, ()>
pub fn lock_write_access<'a>(&'a self) -> RwLockWriteGuard<'a, ()>
pub fn acquire<T: AsRef<str>>( &self, collection: T, bucket: T, ) -> Result<Arc<StoreFST>, ()>
pub fn janitor(&self)
pub fn backup(&self, path: &Path) -> Result<(), Error>
pub fn restore(&self, path: &Path) -> Result<(), Error>
pub fn consolidate(&self, force: bool)
Trait Implementations§
Source§impl Clone for StoreFSTPool
impl Clone for StoreFSTPool
Source§fn clone(&self) -> StoreFSTPool
fn clone(&self) -> StoreFSTPool
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 StoreFSTPool
impl RefUnwindSafe for StoreFSTPool
impl Send for StoreFSTPool
impl Sync for StoreFSTPool
impl Unpin for StoreFSTPool
impl UnsafeUnpin for StoreFSTPool
impl UnwindSafe for StoreFSTPool
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