pub struct MemReadTx<'a> { /* private fields */ }Expand description
A consistent read snapshot held for the transaction’s lifetime.
Trait Implementations§
impl ReadTx for MemReadTx<'_>
Source§impl Readable for MemReadTx<'_>
impl Readable for MemReadTx<'_>
Source§fn get_raw(&self, table: &str, key: &[u8]) -> StoreResult<Option<Vec<u8>>>
fn get_raw(&self, table: &str, key: &[u8]) -> StoreResult<Option<Vec<u8>>>
Fetch the raw value bytes for
key in table, or None if absent.Source§fn range_raw(
&self,
table: &str,
lo: &[u8],
hi: &[u8],
) -> StoreResult<Vec<(Vec<u8>, Vec<u8>)>>
fn range_raw( &self, table: &str, lo: &[u8], hi: &[u8], ) -> StoreResult<Vec<(Vec<u8>, Vec<u8>)>>
Return
(key, value) byte pairs in the half-open range [lo, hi),
in ascending key (byte-lexicographic) order. Because keys are written in
the order-preserving encoding (see crate::codec), this is logical
key order.Auto Trait Implementations§
impl<'a> !Send for MemReadTx<'a>
impl<'a> Freeze for MemReadTx<'a>
impl<'a> RefUnwindSafe for MemReadTx<'a>
impl<'a> Sync for MemReadTx<'a>
impl<'a> Unpin for MemReadTx<'a>
impl<'a> UnsafeUnpin for MemReadTx<'a>
impl<'a> UnwindSafe for MemReadTx<'a>
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