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<T> KnownSize for T
impl<T> KnownSize for T
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more