pub struct ReadTransaction<K, V, I, C, S>where
S: AsyncSpawner,{ /* private fields */ }
Expand description
A read only transaction over the [OptimisticDb
],
Implementations§
Source§impl<K, V, I, C, S> ReadTransaction<K, V, I, C, S>where
K: Ord,
I: Database<K, V>,
S: AsyncSpawner,
impl<K, V, I, C, S> ReadTransaction<K, V, I, C, S>where
K: Ord,
I: Database<K, V>,
S: AsyncSpawner,
Sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the given key exists in the database.
Sourcepub fn iter_rev(&self) -> RevIter<'_, K, V> ⓘ
pub fn iter_rev(&self) -> RevIter<'_, K, V> ⓘ
Returns a reverse iterator over the entries of the database.
Auto Trait Implementations§
impl<K, V, I, C, S> Freeze for ReadTransaction<K, V, I, C, S>where
I: Freeze,
impl<K, V, I, C, S> !RefUnwindSafe for ReadTransaction<K, V, I, C, S>
impl<K, V, I, C, S> Send for ReadTransaction<K, V, I, C, S>
impl<K, V, I, C, S> Sync for ReadTransaction<K, V, I, C, S>
impl<K, V, I, C, S> Unpin for ReadTransaction<K, V, I, C, S>
impl<K, V, I, C, S> !UnwindSafe for ReadTransaction<K, V, I, C, S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more