Struct redb::ReadTransaction
source · [−]pub struct ReadTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ReadTransaction<'a>
impl<'a> ReadTransaction<'a>
sourcepub fn open_table<K: RedbKey + ?Sized, V: RedbValue + ?Sized>(
&self,
definition: TableDefinition<'_, K, V>
) -> Result<ReadOnlyTable<'a, K, V>, Error>
pub fn open_table<K: RedbKey + ?Sized, V: RedbValue + ?Sized>(
&self,
definition: TableDefinition<'_, K, V>
) -> Result<ReadOnlyTable<'a, K, V>, Error>
Open the given table
sourcepub fn open_multimap_table<K: RedbKey + ?Sized, V: RedbKey + ?Sized>(
&self,
definition: MultimapTableDefinition<'_, K, V>
) -> Result<ReadOnlyMultimapTable<'a, K, V>, Error>
pub fn open_multimap_table<K: RedbKey + ?Sized, V: RedbKey + ?Sized>(
&self,
definition: MultimapTableDefinition<'_, K, V>
) -> Result<ReadOnlyMultimapTable<'a, K, V>, Error>
Open the given table
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ReadTransaction<'a>
impl<'a> Send for ReadTransaction<'a>
impl<'a> Sync for ReadTransaction<'a>
impl<'a> Unpin for ReadTransaction<'a>
impl<'a> UnwindSafe for ReadTransaction<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more