#[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 const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of HwcCompositionType.
Sourcepub fn from_i32(value: i32) -> Option<HwcCompositionType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<HwcCompositionType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a HwcCompositionType, or None if value is not a valid variant.
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<HwcCompositionType>
pub fn from_str_name(value: &str) -> Option<HwcCompositionType>
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for HwcCompositionType
impl PartialEq for HwcCompositionType
Source§fn eq(&self, other: &HwcCompositionType) -> bool
fn eq(&self, other: &HwcCompositionType) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HwcCompositionType
impl PartialOrd for HwcCompositionType
Source§impl TryFrom<i32> for HwcCompositionType
impl TryFrom<i32> for HwcCompositionType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<HwcCompositionType, UnknownEnumValue>
fn try_from(value: i32) -> Result<HwcCompositionType, UnknownEnumValue>
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].