[−][src]Struct sanakirja::Txn
An immutable transaction.
Implementations
impl<L, E: Borrow<Env<L>>> Txn<L, E>
[src]
pub fn statistics(&self) -> Statistics
[src]
Compute statistics about pages. This is a potentially costlty operation, as we need to go through all bookkeeping pages.
pub fn references<K: Representable, V: Representable>(
&self,
h: &mut HashMap<u64, usize>,
root: Db<K, V>
)
[src]
&self,
h: &mut HashMap<u64, usize>,
root: Db<K, V>
)
Fills the h
argument with the set of all pages referenced at
least once in the tree whose root is root
.
pub fn check_references(&self, refs: &mut HashMap<u64, usize>)
[src]
Checks that the references match the RC table.
Trait Implementations
impl<L, E: Borrow<Env<L>>> Drop for Txn<L, E>
[src]
impl<L, E: Borrow<Env<L>>> LoadPage for Txn<L, E>
[src]
pub fn load_page(&self, off: u64) -> Result<Page, CRCError>
[src]
Find the appropriate map segment
pub fn root_(&self, num: usize) -> u64
[src]
impl<L, E: Borrow<Env<L>>> Transaction for Txn<L, E>
[src]
pub fn iter<'a, K: Representable, V: Representable>(
&'a self,
db: &'a Db<K, V>,
key: Option<(K, Option<V>)>
) -> Result<DbIterator<'a, Self, K, V>, CRCError>
[src]
&'a self,
db: &'a Db<K, V>,
key: Option<(K, Option<V>)>
) -> Result<DbIterator<'a, Self, K, V>, CRCError>
pub fn rev_iter<'a, K: Representable, V: Representable>(
&'a self,
db: &'a Db<K, V>,
key: Option<(K, Option<V>)>
) -> Result<RevDbIterator<'a, Self, K, V>, CRCError>
[src]
&'a self,
db: &'a Db<K, V>,
key: Option<(K, Option<V>)>
) -> Result<RevDbIterator<'a, Self, K, V>, CRCError>
pub fn set_cursors<K: Representable, V: Representable>(
&self,
root: &Db<K, V>,
key: Option<(K, Option<V>)>
) -> Result<(Cursor, bool), CRCError>
[src]
&self,
root: &Db<K, V>,
key: Option<(K, Option<V>)>
) -> Result<(Cursor, bool), CRCError>
pub fn set_cursors_last<K: Representable, V: Representable>(
&self,
root: &Db<K, V>
) -> Result<Cursor, CRCError>
[src]
&self,
root: &Db<K, V>
) -> Result<Cursor, CRCError>
pub fn root<K: Representable, V: Representable>(
&self,
root: usize
) -> Option<Db<K, V>>
[src]
&self,
root: usize
) -> Option<Db<K, V>>
pub fn get<'a, K: Representable, V: Representable>(
&'a self,
root: &Db<K, V>,
key: K,
value: Option<V>
) -> Result<Option<V>, CRCError>
[src]
&'a self,
root: &Db<K, V>,
key: K,
value: Option<V>
) -> Result<Option<V>, CRCError>
Auto Trait Implementations
impl<L, E> RefUnwindSafe for Txn<L, E> where
E: RefUnwindSafe,
L: RefUnwindSafe,
[src]
E: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, E> Send for Txn<L, E> where
E: Send,
L: Send,
[src]
E: Send,
L: Send,
impl<L, E> Sync for Txn<L, E> where
E: Sync,
L: Sync,
[src]
E: Sync,
L: Sync,
impl<L, E> Unpin for Txn<L, E> where
E: Unpin,
L: Unpin,
[src]
E: Unpin,
L: Unpin,
impl<L, E> UnwindSafe for Txn<L, E> where
E: UnwindSafe,
L: UnwindSafe,
[src]
E: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,