pub struct VMap<D, R, const SIZE: usize = 0>{ /* private fields */ }Expand description
A reference to a virtual mapping for an shmem-based GEM object in kernel address space.
§Invariants
- The size of
owneris >= SIZE. - The memory pointed to by
addrremains valid at least until this object is dropped.
Implementations§
Trait Implementations§
impl<D, R, const SIZE: usize> Send for VMap<D, R, SIZE>
impl<D, R, const SIZE: usize> Sync for VMap<D, R, SIZE>
Auto Trait Implementations§
impl<D, R, const SIZE: usize> Freeze for VMap<D, R, SIZE>where
R: Freeze,
impl<D, R, const SIZE: usize> RefUnwindSafe for VMap<D, R, SIZE>where
R: RefUnwindSafe,
impl<D, R, const SIZE: usize> Unpin for VMap<D, R, SIZE>where
R: Unpin,
impl<D, R, const SIZE: usize> UnsafeUnpin for VMap<D, R, SIZE>where
R: UnsafeUnpin,
impl<D, R, const SIZE: usize> UnwindSafe for VMap<D, R, SIZE>where
R: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.