pub enum WarmStorage {}Expand description
Warm storage tier.
This is a placeholder enum with no variants yet. Will be implemented when warm tier storage is needed.
Trait Implementations§
Source§impl Clone for WarmStorage
impl Clone for WarmStorage
Source§fn clone(&self) -> WarmStorage
fn clone(&self) -> WarmStorage
Returns a duplicate 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 TierStorage for WarmStorage
impl TierStorage for WarmStorage
Source§fn get(
&self,
_table: EntryKind,
_key: &[u8],
_version: CommitVersion,
) -> Result<Option<CowVec<u8>>>
fn get( &self, _table: EntryKind, _key: &[u8], _version: CommitVersion, ) -> Result<Option<CowVec<u8>>>
Get the value for a key at or before the given version.
Source§fn set(
&self,
_version: CommitVersion,
_batches: HashMap<EntryKind, Vec<(CowVec<u8>, Option<CowVec<u8>>)>>,
) -> Result<()>
fn set( &self, _version: CommitVersion, _batches: HashMap<EntryKind, Vec<(CowVec<u8>, Option<CowVec<u8>>)>>, ) -> Result<()>
Write entries to multiple tables atomically at the given version. Read more
Source§fn range_next(
&self,
_table: EntryKind,
_cursor: &mut RangeCursor,
_start: Bound<&[u8]>,
_end: Bound<&[u8]>,
_version: CommitVersion,
_batch_size: usize,
) -> Result<RangeBatch>
fn range_next( &self, _table: EntryKind, _cursor: &mut RangeCursor, _start: Bound<&[u8]>, _end: Bound<&[u8]>, _version: CommitVersion, _batch_size: usize, ) -> Result<RangeBatch>
Fetch the next batch of entries in key order at or before version. Read more
Source§fn range_rev_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>
Fetch the next batch of entries in reverse key order at or before version. Read more
Source§fn ensure_table(&self, _table: EntryKind) -> Result<()>
fn ensure_table(&self, _table: EntryKind) -> Result<()>
Ensure a table exists (creates if needed). Read more
Source§fn drop(
&self,
_batches: HashMap<EntryKind, Vec<(CowVec<u8>, CommitVersion)>>,
) -> Result<()>
fn drop( &self, _batches: HashMap<EntryKind, Vec<(CowVec<u8>, CommitVersion)>>, ) -> Result<()>
Physically drop specific versions of entries from storage. Read more
impl TierBackend for WarmStorage
Auto Trait Implementations§
impl Freeze for WarmStorage
impl RefUnwindSafe for WarmStorage
impl Send for WarmStorage
impl Sync for WarmStorage
impl Unpin for WarmStorage
impl UnsafeUnpin for WarmStorage
impl UnwindSafe for WarmStorage
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