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
sourceimpl<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> where
M: Send + Sync,
impl<'a, M> Unpin for GuestMemoryExclusiveGuard<'a, M>
impl<'a, M> UnwindSafe for GuestMemoryExclusiveGuard<'a, M> where
M: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more