pub struct RedbReadTx { /* private fields */ }Expand description
A redb read transaction (a consistent MVCC snapshot for its lifetime).
Trait Implementations§
impl ReadTx for RedbReadTx
Source§impl Readable for RedbReadTx
impl Readable for RedbReadTx
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 !RefUnwindSafe for RedbReadTx
impl !UnwindSafe for RedbReadTx
impl Freeze for RedbReadTx
impl Send for RedbReadTx
impl Sync for RedbReadTx
impl Unpin for RedbReadTx
impl UnsafeUnpin for RedbReadTx
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