#[repr(u32)]pub enum gbm_bo_map_cache_mode {
GBM_BO_MAP_CACHE_CACHED = 1,
GBM_BO_MAP_CACHE_WC = 3,
}
Expand description
Enum to indicate the cache attributes of CPU mapping returned by gbm_bo_map()
Note that definition aligns with VIRTIO_GPU_MAP_CACHE_, RUTABAGA_MAP_CACHE_, and VIRGL_RENDERER_MAP_CACHE_* (but skipping the _NONE and _UNCACHED values as those don’t actually make sense to use).
Variants§
Trait Implementations§
source§impl Clone for gbm_bo_map_cache_mode
impl Clone for gbm_bo_map_cache_mode
source§fn clone(&self) -> gbm_bo_map_cache_mode
fn clone(&self) -> gbm_bo_map_cache_mode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for gbm_bo_map_cache_mode
impl Debug for gbm_bo_map_cache_mode
source§impl Hash for gbm_bo_map_cache_mode
impl Hash for gbm_bo_map_cache_mode
source§impl PartialEq for gbm_bo_map_cache_mode
impl PartialEq for gbm_bo_map_cache_mode
source§fn eq(&self, other: &gbm_bo_map_cache_mode) -> bool
fn eq(&self, other: &gbm_bo_map_cache_mode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for gbm_bo_map_cache_mode
impl Eq for gbm_bo_map_cache_mode
impl StructuralPartialEq for gbm_bo_map_cache_mode
Auto Trait Implementations§
impl RefUnwindSafe for gbm_bo_map_cache_mode
impl Send for gbm_bo_map_cache_mode
impl Sync for gbm_bo_map_cache_mode
impl Unpin for gbm_bo_map_cache_mode
impl UnwindSafe for gbm_bo_map_cache_mode
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