#[repr(u8)]pub enum MultiBufferTier {
Memory(MemoryPrimitiveStorage),
}Variants§
Memory(MemoryPrimitiveStorage)
Implementations§
Source§impl MultiBufferTier
impl MultiBufferTier
pub fn maintenance(&self)
pub fn count_current(&self, table: EntryKind) -> Result<u64>
pub fn count_historical(&self, table: EntryKind) -> Result<u64>
pub fn list_all_entry_kinds(&self) -> Result<Vec<EntryKind>>
Trait Implementations§
Source§impl Clone for MultiBufferTier
impl Clone for MultiBufferTier
Source§fn clone(&self) -> MultiBufferTier
fn clone(&self) -> MultiBufferTier
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 moreSource§impl TierStorage for MultiBufferTier
impl TierStorage for MultiBufferTier
fn get( &self, table: EntryKind, key: &[u8], version: CommitVersion, ) -> Result<Option<CowVec<u8>>>
fn contains( &self, table: EntryKind, key: &[u8], version: CommitVersion, ) -> Result<bool>
fn set(&self, version: CommitVersion, batches: TierBatch) -> Result<()>
fn range_next( &self, table: EntryKind, cursor: &mut RangeCursor, start: Bound<&[u8]>, end: Bound<&[u8]>, version: CommitVersion, batch_size: usize, ) -> Result<RangeBatch>
fn range_rev_next( &self, table: EntryKind, cursor: &mut RangeCursor, start: Bound<&[u8]>, end: Bound<&[u8]>, version: CommitVersion, batch_size: usize, ) -> Result<RangeBatch>
fn ensure_table(&self, table: EntryKind) -> Result<()>
fn clear_table(&self, table: EntryKind) -> Result<()>
fn drop( &self, batches: HashMap<EntryKind, Vec<(EncodedKey, CommitVersion)>>, ) -> Result<()>
fn get_all_versions( &self, table: EntryKind, key: &[u8], ) -> Result<Vec<(CommitVersion, Option<CowVec<u8>>)>>
fn scan_historical_below( &self, table: EntryKind, cutoff: CommitVersion, cursor: &mut HistoricalCursor, batch_size: usize, ) -> Result<Vec<(EncodedKey, CommitVersion)>>
impl TierBackend for MultiBufferTier
Auto Trait Implementations§
impl Freeze for MultiBufferTier
impl !RefUnwindSafe for MultiBufferTier
impl Send for MultiBufferTier
impl Sync for MultiBufferTier
impl Unpin for MultiBufferTier
impl UnsafeUnpin for MultiBufferTier
impl !UnwindSafe for MultiBufferTier
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more