Enum ClientCompositionOpcode
#[repr(u8)]pub enum ClientCompositionOpcode {
ClientUseImage = 0,
ClientMerge = 1,
ClientFrameScale = 2,
ClientSrcFrame = 3,
ClientTransform = 4,
ClientColorConversion = 5,
ClientAlpha = 6,
}
Variants§
ClientUseImage = 0
The client should configure the layer to use a source image.
ClientMerge = 1
The client should composite the layer.
The client must composite all the layers that have this flag, and replace them with a single layer that has the compositing result.
The flag will be present on a continuous range of layers.
ClientFrameScale = 2
The client should provide a new image produced by scaling the source image such that the dimensions of the new image’s src_frame and dest_frame are equal to the dimensions of the current image’s dest_frame.
ClientSrcFrame = 3
The client should provide a new image produced by clipping the source image to the region specified by src_frame.
ClientTransform = 4
The client should provide a new image produced by applying the desired transformation, so that TRANSFORM_IDENTITY can be specified.
ClientColorConversion = 5
The client should apply the color conversion itself.
ClientAlpha = 6
The client should apply the alpha itself.
Implementations§
§impl ClientCompositionOpcode
impl ClientCompositionOpcode
pub fn from_primitive(prim: u8) -> Option<ClientCompositionOpcode>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
§impl Clone for ClientCompositionOpcode
impl Clone for ClientCompositionOpcode
§fn clone(&self) -> ClientCompositionOpcode
fn clone(&self) -> ClientCompositionOpcode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ClientCompositionOpcode
impl Debug for ClientCompositionOpcode
§impl<D> Decode<ClientCompositionOpcode, D> for ClientCompositionOpcodewhere
D: ResourceDialect,
impl<D> Decode<ClientCompositionOpcode, D> for ClientCompositionOpcodewhere
D: ResourceDialect,
§fn new_empty() -> ClientCompositionOpcode
fn new_empty() -> ClientCompositionOpcode
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<ClientCompositionOpcode, D> for ClientCompositionOpcodewhere
D: ResourceDialect,
impl<D> Encode<ClientCompositionOpcode, D> for ClientCompositionOpcodewhere
D: ResourceDialect,
§impl Hash for ClientCompositionOpcode
impl Hash for ClientCompositionOpcode
§impl Ord for ClientCompositionOpcode
impl Ord for ClientCompositionOpcode
§fn cmp(&self, other: &ClientCompositionOpcode) -> Ordering
fn cmp(&self, other: &ClientCompositionOpcode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for ClientCompositionOpcode
impl PartialEq for ClientCompositionOpcode
§impl PartialOrd for ClientCompositionOpcode
impl PartialOrd for ClientCompositionOpcode
§impl TypeMarker for ClientCompositionOpcode
impl TypeMarker for ClientCompositionOpcode
§type Owned = ClientCompositionOpcode
type Owned = ClientCompositionOpcode
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for ClientCompositionOpcode
impl ValueTypeMarker for ClientCompositionOpcode
§type Borrowed<'a> = ClientCompositionOpcode
type Borrowed<'a> = ClientCompositionOpcode
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ClientCompositionOpcode as TypeMarker>::Owned,
) -> <ClientCompositionOpcode as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ClientCompositionOpcode as TypeMarker>::Owned, ) -> <ClientCompositionOpcode as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.