pub struct Txn<E: Borrow<Env>> { /* private fields */ }
Expand description
An immutable transaction.
Implementations§
Trait Implementations§
source§impl<E: Borrow<Env>> LoadPage for Txn<E>
impl<E: Borrow<Env>> LoadPage for Txn<E>
source§unsafe fn load_page(&self, off: u64) -> Result<CowPage, Self::Error>
unsafe fn load_page(&self, off: u64) -> Result<CowPage, Self::Error>
Find the appropriate map segment
type Error = Error
source§fn rc(&self, _: u64) -> Result<u64, Self::Error>
fn rc(&self, _: u64) -> Result<u64, Self::Error>
Reference-counting. Since reference-counts are designed to be
storable into B trees by external allocators, pages referenced
once aren’t stored, and hence are indistinguishable from pages
that are never referenced. The default implementation returns
0. Read more
Auto Trait Implementations§
impl<E> RefUnwindSafe for Txn<E>where
E: RefUnwindSafe,
impl<E> Send for Txn<E>where
E: Send,
impl<E> Sync for Txn<E>where
E: Sync,
impl<E> Unpin for Txn<E>where
E: Unpin,
impl<E> UnwindSafe for Txn<E>where
E: UnwindSafe,
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