pub struct WriteGuard<'a, V> { /* private fields */ }Expand description
Guardian of mutable value reference, holding HashMap read lock and value write lock 可变值引用的守护者,持有HashMap读锁和值的写锁
This allows other threads to still read other values, but cannot modify this value 这样其他线程仍可读取其他值,但不能修改此值
Trait Implementations§
Source§impl<'a, V> AsMut<V> for WriteGuard<'a, V>
impl<'a, V> AsMut<V> for WriteGuard<'a, V>
Source§impl<'a, V> AsRef<V> for WriteGuard<'a, V>
impl<'a, V> AsRef<V> for WriteGuard<'a, V>
Source§impl<'a, V> Debug for WriteGuard<'a, V>where
V: Debug,
impl<'a, V> Debug for WriteGuard<'a, V>where
V: Debug,
Source§impl<'a, V> Deref for WriteGuard<'a, V>
impl<'a, V> Deref for WriteGuard<'a, V>
Source§impl<'a, V> DerefMut for WriteGuard<'a, V>
impl<'a, V> DerefMut for WriteGuard<'a, V>
Source§impl<'a, V> Display for WriteGuard<'a, V>where
V: Display,
impl<'a, V> Display for WriteGuard<'a, V>where
V: Display,
Source§impl<'a, V> PartialEq for WriteGuard<'a, V>where
V: PartialEq,
impl<'a, V> PartialEq for WriteGuard<'a, V>where
V: PartialEq,
impl<'a, V> Eq for WriteGuard<'a, V>where
V: Eq,
Auto Trait Implementations§
impl<'a, V> Freeze for WriteGuard<'a, V>
impl<'a, V> !RefUnwindSafe for WriteGuard<'a, V>
impl<'a, V> Send for WriteGuard<'a, V>
impl<'a, V> Sync for WriteGuard<'a, V>
impl<'a, V> Unpin for WriteGuard<'a, V>
impl<'a, V> !UnwindSafe for WriteGuard<'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