pub struct WriteGuard<'a, T: 'static> { /* private fields */ }Expand description
Write Guard - Provides direct mutable access, automatically commits changes on Drop Holds Mutex lock to ensure exclusive write access
写入保护器 - 提供直接的可变访问,在 Drop 时自动提交更改 持有 Mutex 锁,确保独占写入访问
Trait Implementations§
Source§impl<'a, T: 'static> Deref for WriteGuard<'a, T>
impl<'a, T: 'static> Deref for WriteGuard<'a, T>
Source§impl<'a, T: 'static> DerefMut for WriteGuard<'a, T>
impl<'a, T: 'static> DerefMut for WriteGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for WriteGuard<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for WriteGuard<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for WriteGuard<'a, T>
impl<'a, T> !Sync for WriteGuard<'a, T>
impl<'a, T> Unpin for WriteGuard<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for WriteGuard<'a, T>where
T: UnwindSafe,
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