pub enum MdbxReadTransaction<'db> {
Read(MdbxTransaction<'db, RO>),
Write(MdbxTransaction<'db, RW>),
}Expand description
A proxy object that can be either a read or a write transaction. This is used to the outside to hide the transaction kind generic.
Variants§
Read(MdbxTransaction<'db, RO>)
Write(MdbxTransaction<'db, RW>)
Trait Implementations§
Source§impl<'db> AsRef<MdbxReadTransaction<'db>> for MdbxReadTransaction<'db>
impl<'db> AsRef<MdbxReadTransaction<'db>> for MdbxReadTransaction<'db>
Source§fn as_ref(&self) -> &MdbxReadTransaction<'db>
fn as_ref(&self) -> &MdbxReadTransaction<'db>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'db> AsRef<MdbxReadTransaction<'db>> for MdbxWriteTransaction<'db>
impl<'db> AsRef<MdbxReadTransaction<'db>> for MdbxWriteTransaction<'db>
Source§fn as_ref(&self) -> &MdbxReadTransaction<'db>
fn as_ref(&self) -> &MdbxReadTransaction<'db>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'db, 'inner> AsRef<MdbxReadTransaction<'db>> for TransactionProxy<'db, 'inner>where
'db: 'inner,
impl<'db, 'inner> AsRef<MdbxReadTransaction<'db>> for TransactionProxy<'db, 'inner>where
'db: 'inner,
Source§fn as_ref(&self) -> &MdbxReadTransaction<'db>
fn as_ref(&self) -> &MdbxReadTransaction<'db>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'db> ReadTransaction<'db> for MdbxReadTransaction<'db>
impl<'db> ReadTransaction<'db> for MdbxReadTransaction<'db>
type Cursor<'txn, T: Table> = CursorProxy<'txn, T> where Self: 'txn
type DupCursor<'txn, T: DupTable> = CursorProxy<'txn, T> where Self: 'txn
Source§fn get<T: Table>(&self, table: &T, key: &T::Key) -> Option<T::Value>
fn get<T: Table>(&self, table: &T, key: &T::Key) -> Option<T::Value>
Gets the value at a given key.
Source§fn cursor<'txn, T: RegularTable>(&'txn self, table: &T) -> Self::Cursor<'txn, T>
fn cursor<'txn, T: RegularTable>(&'txn self, table: &T) -> Self::Cursor<'txn, T>
Creates a cursor for iterating over the table.
Auto Trait Implementations§
impl<'db> !Freeze for MdbxReadTransaction<'db>
impl<'db> !RefUnwindSafe for MdbxReadTransaction<'db>
impl<'db> Send for MdbxReadTransaction<'db>
impl<'db> Sync for MdbxReadTransaction<'db>
impl<'db> Unpin for MdbxReadTransaction<'db>
impl<'db> UnsafeUnpin for MdbxReadTransaction<'db>
impl<'db> !UnwindSafe for MdbxReadTransaction<'db>
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