#[repr(u32)]pub enum Memory {
Mmap = 1,
UserPtr = 2,
Dmabuf = 4,
}Expand description
Where the memory of a given Buffer is stored and allocated from.
Variants§
Mmap = 1
The kernel allocates this memory.
UserPtr = 2
Userland has to allocate this memory.
Dmabuf = 4
A device owns this memory.
Trait Implementations§
impl Copy for Memory
impl StructuralPartialEq for Memory
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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