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>
impl<K, V, S> Sync for ReadGuard<'_, K, V, S>
Auto Trait Implementations§
impl<'guard, K, V, S> Freeze for ReadGuard<'guard, K, V, S>
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§
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