pub struct MutRefGuard<'a, V> { /* private fields */ }Expand description
Mutable guard without value lock, only structure lock (mutable access) 无值锁的可变守护者,只有结构锁(可变访问)
§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> AsMut<V> for MutRefGuard<'a, V>
impl<'a, V> AsMut<V> for MutRefGuard<'a, V>
Source§impl<'a, V> AsRef<V> for MutRefGuard<'a, V>
impl<'a, V> AsRef<V> for MutRefGuard<'a, V>
Source§impl<'a, V> Debug for MutRefGuard<'a, V>where
V: Debug,
impl<'a, V> Debug for MutRefGuard<'a, V>where
V: Debug,
Source§impl<'a, V> Deref for MutRefGuard<'a, V>
impl<'a, V> Deref for MutRefGuard<'a, V>
Source§impl<'a, V> DerefMut for MutRefGuard<'a, V>
impl<'a, V> DerefMut for MutRefGuard<'a, V>
Source§impl<'a, V> Display for MutRefGuard<'a, V>where
V: Display,
impl<'a, V> Display for MutRefGuard<'a, V>where
V: Display,
Source§impl<'a, V> PartialEq for MutRefGuard<'a, V>where
V: PartialEq,
impl<'a, V> PartialEq for MutRefGuard<'a, V>where
V: PartialEq,
impl<'a, V> Eq for MutRefGuard<'a, V>where
V: Eq,
Auto Trait Implementations§
impl<'a, V> Freeze for MutRefGuard<'a, V>
impl<'a, V> RefUnwindSafe for MutRefGuard<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for MutRefGuard<'a, V>where
V: Send,
impl<'a, V> Sync for MutRefGuard<'a, V>where
V: Sync,
impl<'a, V> Unpin for MutRefGuard<'a, V>
impl<'a, V> !UnwindSafe for MutRefGuard<'a, V>
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