#[repr(u8)]pub enum MapAccess {
Read = 0,
Write = 1,
ReadWrite = 2,
}Expand description
Intent of a CPU mapping.
Backends that distinguish read-only from read-write traffic (GBM, through
gbm_bo_map’s transfer flags) honor this; dumb buffers ignore it. Picking
the narrowest mode that fits is always correct: on a backend that stages,
a read-only mapping needs no flush back on unmap.
Variants§
Trait Implementations§
impl Copy for MapAccess
impl Eq for MapAccess
Source§impl Ord for MapAccess
impl Ord for MapAccess
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MapAccess
impl PartialOrd 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