pub struct ReadGuard<'guard, K, V, S = RandomState> { /* private fields */ }
Expand description
Provides immutable access to the map, and prevents entries from being dropped.
This guard provides a snapshot view of the map at a particular point in time. A new guard must
be created in order to see updates from the writer. See
ReadHandle::guard
for examples. See View
for
additional examples and the public API to interact with the underlying map.
Trait Implementations
impl<K, V, S> Send for ReadGuard<'_, K, V, S> where
K: Send + Sync,
V: Send + Sync,
S: Send + Sync,
impl<K, V, S> Sync for ReadGuard<'_, K, V, S> where
K: Send + Sync,
V: Send + Sync,
S: Send + Sync,
Auto Trait Implementations
impl<'guard, K, V, S = RandomState> !RefUnwindSafe for ReadGuard<'guard, K, V, S>
impl<'guard, K, V, S> Unpin for ReadGuard<'guard, K, V, S>
impl<'guard, K, V, S = RandomState> !UnwindSafe for ReadGuard<'guard, K, V, S>
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