Struct fidl_fuchsia_ui_gfx::SetLabelCmd
source · pub struct SetLabelCmd {
pub id: u32,
pub label: String,
}
Expand description
Sets/clears a label to help developers identify the purpose of the resource when using diagnostic tools.
The label serves no functional purpose in the scene graph. It exists only to help developers understand its structure. The scene manager may truncate or discard labels at will.
Constraints:
- The label’s maximum length is
kLabelMaxLength
characters. - Setting the label to an empty string clears it.
Fields§
§id: u32
§label: String
Trait Implementations§
source§impl Clone for SetLabelCmd
impl Clone for SetLabelCmd
source§fn clone(&self) -> SetLabelCmd
fn clone(&self) -> SetLabelCmd
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 SetLabelCmd
impl Debug for SetLabelCmd
source§impl Decode<SetLabelCmd> for SetLabelCmd
impl Decode<SetLabelCmd> for SetLabelCmd
source§impl Encode<SetLabelCmd> for &SetLabelCmd
impl Encode<SetLabelCmd> for &SetLabelCmd
source§impl<T0: Encode<u32>, T1: Encode<UnboundedString>> Encode<SetLabelCmd> for (T0, T1)
impl<T0: Encode<u32>, T1: Encode<UnboundedString>> Encode<SetLabelCmd> for (T0, T1)
source§impl Hash for SetLabelCmd
impl Hash for SetLabelCmd
source§impl Ord for SetLabelCmd
impl Ord for SetLabelCmd
source§fn cmp(&self, other: &SetLabelCmd) -> Ordering
fn cmp(&self, other: &SetLabelCmd) -> 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<SetLabelCmd> for SetLabelCmd
impl PartialEq<SetLabelCmd> for SetLabelCmd
source§fn eq(&self, other: &SetLabelCmd) -> bool
fn eq(&self, other: &SetLabelCmd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SetLabelCmd> for SetLabelCmd
impl PartialOrd<SetLabelCmd> for SetLabelCmd
source§fn partial_cmp(&self, other: &SetLabelCmd) -> Option<Ordering>
fn partial_cmp(&self, other: &SetLabelCmd) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for SetLabelCmd
impl TypeMarker for SetLabelCmd
§type Owned = SetLabelCmd
type Owned = SetLabelCmd
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(context: Context) -> usize
fn inline_align(context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(context: Context) -> usize
fn inline_size(context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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.source§impl ValueTypeMarker for SetLabelCmd
impl ValueTypeMarker for SetLabelCmd
§type Borrowed<'a> = &'a <SetLabelCmd as TypeMarker>::Owned
type Borrowed<'a> = &'a <SetLabelCmd as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more