pub struct OpenDeltaDbLru<DeltaDbManager: DeltaDbManagerTrait> { /* private fields */ }
Implementations§
source§impl<T: 'static + DeltaDbManagerTrait + Send + Sync> OpenDeltaDbLru<T>
impl<T: 'static + DeltaDbManagerTrait + Send + Sync> OpenDeltaDbLru<T>
pub fn new(delta_db_manager: Arc<T>, capacity: u32) -> Result<Self>
pub fn create( &self, snapshot_epoch_id: &EpochId, mpt_id: u16 ) -> Result<ArcDeltaDbWrapper>
pub fn import( &self, snapshot_epoch_id: &EpochId, mpt_id: u16, opened_db: T::DeltaDb ) -> Result<ArcDeltaDbWrapper>
pub fn release(&self, mpt_id: u16, destroy: bool)
Trait Implementations§
source§impl<T: 'static + DeltaDbManagerTrait + Send + Sync> OpenableOnDemandOpenDeltaDbTrait for OpenDeltaDbLru<T>
impl<T: 'static + DeltaDbManagerTrait + Send + Sync> OpenableOnDemandOpenDeltaDbTrait for OpenDeltaDbLru<T>
Auto Trait Implementations§
impl<DeltaDbManager> !RefUnwindSafe for OpenDeltaDbLru<DeltaDbManager>
impl<DeltaDbManager> Send for OpenDeltaDbLru<DeltaDbManager>where
DeltaDbManager: Send,
impl<DeltaDbManager> Sync for OpenDeltaDbLru<DeltaDbManager>where
DeltaDbManager: Sync,
impl<DeltaDbManager> Unpin for OpenDeltaDbLru<DeltaDbManager>where
DeltaDbManager: Unpin,
impl<DeltaDbManager> !UnwindSafe for OpenDeltaDbLru<DeltaDbManager>
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