pub struct WriteGuard<'a, V> { /* private fields */ }Expand description
Write guard with value write lock, holding structure read lock and value write lock 带值写锁的写守护者,持有结构读锁和值的写锁
This allows other threads to still read/write other values, but cannot access 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