#[repr(i32)]pub enum HwcCompositionType {
HwcTypeUnspecified = 0,
HwcTypeClient = 1,
HwcTypeDevice = 2,
HwcTypeSolidColor = 3,
HwcTypeCursor = 4,
HwcTypeSideband = 5,
HwcTypeDisplayDecoration = 6,
}
Expand description
Must match definition in the IComposerClient HAL
Variants§
HwcTypeUnspecified = 0
Invalid composition type
HwcTypeClient = 1
Layer was composited by the client into the client target buffer
HwcTypeDevice = 2
Layer was composited by the device through hardware overlays
HwcTypeSolidColor = 3
Layer was composited by the device using a color
HwcTypeCursor = 4
Similar to DEVICE, but the layer position may have been asynchronously set through setCursorPosition
HwcTypeSideband = 5
Layer was composited by the device via a sideband stream
HwcTypeDisplayDecoration = 6
Layer was composited by hardware optimized for display decoration
Implementations§
Source§impl HwcCompositionType
impl HwcCompositionType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for HwcCompositionType
impl Clone for HwcCompositionType
Source§fn clone(&self) -> HwcCompositionType
fn clone(&self) -> HwcCompositionType
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 HwcCompositionType
impl Debug for HwcCompositionType
Source§impl Default for HwcCompositionType
impl Default for HwcCompositionType
Source§fn default() -> HwcCompositionType
fn default() -> HwcCompositionType
Returns the “default value” for a type. Read more
Source§impl From<HwcCompositionType> for i32
impl From<HwcCompositionType> for i32
Source§fn from(value: HwcCompositionType) -> i32
fn from(value: HwcCompositionType) -> i32
Converts to this type from the input type.
Source§impl Hash for HwcCompositionType
impl Hash for HwcCompositionType
Source§impl Ord for HwcCompositionType
impl Ord for HwcCompositionType
Source§fn cmp(&self, other: &HwcCompositionType) -> Ordering
fn cmp(&self, other: &HwcCompositionType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for HwcCompositionType
impl PartialEq for HwcCompositionType
Source§impl PartialOrd for HwcCompositionType
impl PartialOrd for HwcCompositionType
Source§impl TryFrom<i32> for HwcCompositionType
impl TryFrom<i32> for HwcCompositionType
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<HwcCompositionType, DecodeError>
fn try_from(value: i32) -> Result<HwcCompositionType, DecodeError>
Performs the conversion.
impl Copy for HwcCompositionType
impl Eq for HwcCompositionType
impl StructuralPartialEq for HwcCompositionType
Auto Trait Implementations§
impl Freeze for HwcCompositionType
impl RefUnwindSafe for HwcCompositionType
impl Send for HwcCompositionType
impl Sync for HwcCompositionType
impl Unpin for HwcCompositionType
impl UnwindSafe for HwcCompositionType
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