pub struct TableReadGuard<'a, K, V, S = RandomState> { /* private fields */ }Expand description
A RAII guard, that provides read access to the Table entry’s value.
Created by the Table::get or Table::try_get methods.
The guard keeps the corresponding Table shard locked for read until the guard is dropped.
Trait Implementations§
Source§impl<'a, K, V, S> Deref for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> Deref for TableReadGuard<'a, K, V, S>
Source§impl<'a, N: Grammar, S: SyncBuildHasher> From<TableReadGuard<'a, Id, DocEntry<N, S>, S>> for DocumentReadGuard<'a, N, S>
impl<'a, N: Grammar, S: SyncBuildHasher> From<TableReadGuard<'a, Id, DocEntry<N, S>, S>> for DocumentReadGuard<'a, N, S>
Source§fn from(guard: TableReadGuard<'a, Id, DocEntry<N, S>, S>) -> Self
fn from(guard: TableReadGuard<'a, Id, DocEntry<N, S>, S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, K, V, S = RandomState> !Send for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> Freeze for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> RefUnwindSafe for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> Sync for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> Unpin for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> UnsafeUnpin for TableReadGuard<'a, K, V, S>
impl<'a, K, V, S> UnwindSafe for TableReadGuard<'a, K, V, 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