pub struct MapReadGuard<'a, V> { /* private fields */ }Expand description
Guardian of read-only value reference without value lock, holding HashMap read lock only 无值锁的只读值引用守护者,仅持有HashMap读锁
§Safety
此结构绕过了保护值的 RwLock,仅当您确定没有其他线程正在修改该值时才应使用。
This struct bypasses the RwLock protecting the value.
It should only be used when you are sure that no other thread is modifying the value.
Trait Implementations§
Source§impl<'a, V> AsRef<V> for MapReadGuard<'a, V>
impl<'a, V> AsRef<V> for MapReadGuard<'a, V>
Source§impl<'a, V> Debug for MapReadGuard<'a, V>where
V: Debug,
impl<'a, V> Debug for MapReadGuard<'a, V>where
V: Debug,
Source§impl<'a, V> Deref for MapReadGuard<'a, V>
impl<'a, V> Deref for MapReadGuard<'a, V>
Source§impl<'a, V> Display for MapReadGuard<'a, V>where
V: Display,
impl<'a, V> Display for MapReadGuard<'a, V>where
V: Display,
Source§impl<'a, V> PartialEq for MapReadGuard<'a, V>where
V: PartialEq,
impl<'a, V> PartialEq for MapReadGuard<'a, V>where
V: PartialEq,
impl<'a, V> Eq for MapReadGuard<'a, V>where
V: Eq,
Auto Trait Implementations§
impl<'a, V> Freeze for MapReadGuard<'a, V>
impl<'a, V> RefUnwindSafe for MapReadGuard<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for MapReadGuard<'a, V>where
V: Sync,
impl<'a, V> Sync for MapReadGuard<'a, V>where
V: Sync,
impl<'a, V> Unpin for MapReadGuard<'a, V>
impl<'a, V> UnwindSafe for MapReadGuard<'a, V>where
V: RefUnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more