pub struct WriteGuardEntry<'a, V> { /* private fields */ }Expand description
Guardian for methods like get_or_insert, holding HashMap write lock and value write lock 用于 get_or_insert 等方法的守护者,持有HashMap写锁和值的写锁
Requires HashMap write lock because it may involve insertion operations 因为可能涉及插入操作,需要HashMap写锁
Trait Implementations§
Source§impl<'a, V> AsMut<V> for WriteGuardEntry<'a, V>
impl<'a, V> AsMut<V> for WriteGuardEntry<'a, V>
Source§impl<'a, V> AsRef<V> for WriteGuardEntry<'a, V>
impl<'a, V> AsRef<V> for WriteGuardEntry<'a, V>
Source§impl<'a, V> Debug for WriteGuardEntry<'a, V>where
V: Debug,
impl<'a, V> Debug for WriteGuardEntry<'a, V>where
V: Debug,
Source§impl<'a, V> Deref for WriteGuardEntry<'a, V>
impl<'a, V> Deref for WriteGuardEntry<'a, V>
Source§impl<'a, V> DerefMut for WriteGuardEntry<'a, V>
impl<'a, V> DerefMut for WriteGuardEntry<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for WriteGuardEntry<'a, V>
impl<'a, V> !RefUnwindSafe for WriteGuardEntry<'a, V>
impl<'a, V> Send for WriteGuardEntry<'a, V>
impl<'a, V> Sync for WriteGuardEntry<'a, V>
impl<'a, V> Unpin for WriteGuardEntry<'a, V>
impl<'a, V> !UnwindSafe for WriteGuardEntry<'a, V>
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