Struct ndk::hardware_buffer::HardwareBufferUsage
source · [−]pub struct HardwareBufferUsage(pub AHardwareBuffer_UsageFlags);
Available on crate feature
api-level-26
only.Tuple Fields
0: AHardwareBuffer_UsageFlags
Implementations
sourceimpl HardwareBufferUsage
impl HardwareBufferUsage
pub const CPU_READ_NEVER: Self = _
pub const CPU_READ_RARELY: Self = _
pub const CPU_READ_OFTEN: Self = _
pub const CPU_READ_MASK: Self = _
pub const CPU_WRITE_NEVER: Self = _
pub const CPU_WRITE_RARELY: Self = _
pub const CPU_WRITE_OFTEN: Self = _
pub const CPU_WRITE_MASK: Self = _
pub const GPU_SAMPLED_IMAGE: Self = _
pub const GPU_FRAMEBUFFER: Self = _
pub const COMPOSER_OVERLAY: Self = _
pub const PROTECTED_CONTENT: Self = _
pub const VIDEO_ENCODE: Self = _
pub const SENSOR_DIRECT_DATA: Self = _
pub const GPU_DATA_BUFFER: Self = _
pub const GPU_CUBE_MAP: Self = _
pub const GPU_MIPMAP_COMPLETE: Self = _
pub const VENDOR_0: Self = _
pub const VENDOR_1: Self = _
pub const VENDOR_2: Self = _
pub const VENDOR_3: Self = _
pub const VENDOR_4: Self = _
pub const VENDOR_5: Self = _
pub const VENDOR_6: Self = _
pub const VENDOR_7: Self = _
pub const VENDOR_8: Self = _
pub const VENDOR_9: Self = _
pub const VENDOR_10: Self = _
pub const VENDOR_11: Self = _
pub const VENDOR_12: Self = _
pub const VENDOR_13: Self = _
pub const VENDOR_14: Self = _
pub const VENDOR_15: Self = _
pub const VENDOR_16: Self = _
pub const VENDOR_17: Self = _
pub const VENDOR_18: Self = _
pub const VENDOR_19: Self = _
Trait Implementations
sourceimpl Clone for HardwareBufferUsage
impl Clone for HardwareBufferUsage
sourcefn clone(&self) -> HardwareBufferUsage
fn clone(&self) -> HardwareBufferUsage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HardwareBufferUsage
impl Debug for HardwareBufferUsage
sourceimpl PartialEq<HardwareBufferUsage> for HardwareBufferUsage
impl PartialEq<HardwareBufferUsage> for HardwareBufferUsage
sourcefn eq(&self, other: &HardwareBufferUsage) -> bool
fn eq(&self, other: &HardwareBufferUsage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HardwareBufferUsage) -> bool
fn ne(&self, other: &HardwareBufferUsage) -> bool
This method tests for !=
.
impl Copy for HardwareBufferUsage
impl Eq for HardwareBufferUsage
impl StructuralEq for HardwareBufferUsage
impl StructuralPartialEq for HardwareBufferUsage
Auto Trait Implementations
impl RefUnwindSafe for HardwareBufferUsage
impl Send for HardwareBufferUsage
impl Sync for HardwareBufferUsage
impl Unpin for HardwareBufferUsage
impl UnwindSafe for HardwareBufferUsage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more