Struct vm_memory::atomic::GuestMemoryExclusiveGuard
source · pub struct GuestMemoryExclusiveGuard<'a, M: GuestMemory> { /* private fields */ }Expand description
An RAII implementation of a “scoped lock” for GuestMemoryAtomic. When
this structure is dropped (falls out of scope) the lock will be unlocked,
possibly after updating the memory map represented by the
GuestMemoryAtomic that created the guard.
Implementations§
source§impl<M: GuestMemory> GuestMemoryExclusiveGuard<'_, M>
impl<M: GuestMemory> GuestMemoryExclusiveGuard<'_, M>
Auto Trait Implementations§
impl<'a, M> RefUnwindSafe for GuestMemoryExclusiveGuard<'a, M>where
M: RefUnwindSafe,
impl<'a, M> !Send for GuestMemoryExclusiveGuard<'a, M>
impl<'a, M> Sync for GuestMemoryExclusiveGuard<'a, M>
impl<'a, M> Unpin for GuestMemoryExclusiveGuard<'a, M>
impl<'a, M> UnwindSafe for GuestMemoryExclusiveGuard<'a, M>where
M: RefUnwindSafe,
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