pub enum MapAccess {
Read,
Write,
ReadWrite,
}Expand description
How a CPU mapping will be used.
GBM needs this up front: a driver may have to move or detile a buffer to make it CPU-readable, and it can skip that when the caller only writes.
Variants§
Trait Implementations§
impl Copy for MapAccess
impl Eq for MapAccess
impl StructuralPartialEq for MapAccess
Auto Trait Implementations§
impl Freeze for MapAccess
impl RefUnwindSafe for MapAccess
impl Send for MapAccess
impl Sync for MapAccess
impl Unpin for MapAccess
impl UnsafeUnpin for MapAccess
impl UnwindSafe for MapAccess
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