pub struct VolatileSliceGuard<'a, PtrGuardType, BitmapType: Bitmap> { /* private fields */ }Available on crate feature
vm-memory only.Expand description
Ensures an I/O vector’s validity when created from [VolatileSlice].
[VolatileSlice] arrays may require being explicitly mapped before use (and unmapped after),
and this guard ensures that the memory is mapped until it is dropped.
Further, for mutable vectors (IoVectorMut), it will also dirty the corresponding bitmap
slices when dropped, assuming the whole vector has been written.
Trait Implementations§
Source§impl<P, B: Bitmap> Drop for VolatileSliceGuard<'_, P, B>
impl<P, B: Bitmap> Drop for VolatileSliceGuard<'_, P, B>
Auto Trait Implementations§
impl<'a, PtrGuardType, BitmapType> Freeze for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
impl<'a, PtrGuardType, BitmapType> RefUnwindSafe for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
impl<'a, PtrGuardType, BitmapType> Send for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
impl<'a, PtrGuardType, BitmapType> Sync for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
impl<'a, PtrGuardType, BitmapType> Unpin for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
impl<'a, PtrGuardType, BitmapType> UnsafeUnpin for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
impl<'a, PtrGuardType, BitmapType> UnwindSafe for VolatileSliceGuard<'a, PtrGuardType, BitmapType>
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