#[repr(C)]pub struct ViewHolderToken {
pub value: EventPair,
}Expand description
Token that uniquely identifies an attachment point for a View in the
global scene graph. Each ViewHolderToken has exactly one corresponding
ViewToken.
A Scenic client can reference contents from another client by creating a
ViewHolder resource using this token. The other client must also create
a View resource using the corresponding ViewToken.
Fields§
§value: EventPairTrait Implementations§
Source§impl Debug for ViewHolderToken
impl Debug for ViewHolderToken
Source§impl<___E> Encode<ViewHolderToken, ___E> for ViewHolderTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<ViewHolderToken, ___E> for ViewHolderTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, ViewHolderToken>
const COPY_OPTIMIZATION: CopyOptimization<Self, ViewHolderToken>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<ViewHolderToken>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<ViewHolderToken>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, ViewHolderToken>, ___E> for ViewHolderToken
impl<___E> EncodeOption<Box<'static, ViewHolderToken>, ___E> for ViewHolderToken
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, ViewHolderToken>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, ViewHolderToken>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWire<ViewHolderToken> for ViewHolderToken
impl FromWire<ViewHolderToken> for ViewHolderToken
Source§const COPY_OPTIMIZATION: CopyOptimization<ViewHolderToken, Self>
const COPY_OPTIMIZATION: CopyOptimization<ViewHolderToken, Self>
Source§fn from_wire(wire: ViewHolderToken) -> Self
fn from_wire(wire: ViewHolderToken) -> Self
Converts the given owned value to this type.
Source§impl PartialEq for ViewHolderToken
impl PartialEq for ViewHolderToken
impl StructuralPartialEq for ViewHolderToken
Auto Trait Implementations§
impl Freeze for ViewHolderToken
impl RefUnwindSafe for ViewHolderToken
impl Send for ViewHolderToken
impl Sync for ViewHolderToken
impl Unpin for ViewHolderToken
impl UnsafeUnpin for ViewHolderToken
impl UnwindSafe for ViewHolderToken
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
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]