Struct fidl_fuchsia_ui_gfx::ExportToken
source · pub struct ExportToken {
pub value: EventPair,
}
Expand description
Token that uniquely identifies a root point for a subgraph in the global
scene graph. Each ExportToken
has exactly one corresponding ImportToken
.
A Scenic client can have its contents referenced from another client by
creating a typed resource using this token. The other client must also
create a correspondingly typed resource using the corresponding
ImportToken
.
The exact nature of the inter-client reference depends on the specific
resources created from the tokens. For example, creating a View
resource from this token allows everything attached to the View
to be
embedded in another clients ViewHolder
.
Fields§
§value: EventPair
Trait Implementations§
source§impl Debug for ExportToken
impl Debug for ExportToken
source§impl Decode<ExportToken> for ExportToken
impl Decode<ExportToken> for ExportToken
source§impl Encode<ExportToken> for &mut ExportToken
impl Encode<ExportToken> for &mut ExportToken
source§impl<T0: Encode<HandleType<EventPair, { _ }, 2147483648>>> Encode<ExportToken> for (T0,)
impl<T0: Encode<HandleType<EventPair, { _ }, 2147483648>>> Encode<ExportToken> for (T0,)
source§impl Hash for ExportToken
impl Hash for ExportToken
source§impl Ord for ExportToken
impl Ord for ExportToken
source§fn cmp(&self, other: &ExportToken) -> Ordering
fn cmp(&self, other: &ExportToken) -> 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<ExportToken> for ExportToken
impl PartialEq<ExportToken> for ExportToken
source§fn eq(&self, other: &ExportToken) -> bool
fn eq(&self, other: &ExportToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExportToken> for ExportToken
impl PartialOrd<ExportToken> for ExportToken
source§fn partial_cmp(&self, other: &ExportToken) -> Option<Ordering>
fn partial_cmp(&self, other: &ExportToken) -> 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 ResourceTypeMarker for ExportToken
impl ResourceTypeMarker for ExportToken
§type Borrowed<'a> = &'a mut ExportToken
type Borrowed<'a> = &'a mut ExportToken
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).source§impl TypeMarker for ExportToken
impl TypeMarker for ExportToken
§type Owned = ExportToken
type Owned = ExportToken
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.