pub enum ColdStorage {}Expand description
Cold storage tier.
This is a placeholder enum with no variants yet. Will be implemented when cold tier storage is needed.
Trait Implementations§
Source§impl Clone for ColdStorage
impl Clone for ColdStorage
Source§fn clone(&self) -> ColdStorage
fn clone(&self) -> ColdStorage
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 ColdStorage
impl TierStorage for ColdStorage
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 ColdStorage
Auto Trait Implementations§
impl Freeze for ColdStorage
impl RefUnwindSafe for ColdStorage
impl Send for ColdStorage
impl Sync for ColdStorage
impl Unpin for ColdStorage
impl UnsafeUnpin for ColdStorage
impl UnwindSafe for ColdStorage
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