#[repr(C)]pub struct ViewToken {
pub value: EventPair,
}Expand description
Token that uniquely identifies a View, which is the root point for a
subgraph in the global scene graph. Each ViewToken has exactly one
corresponding ViewHolderToken.
A Scenic client can have its contents referenced from another client by
creating a View resource using this token. The other client must also
create a ViewHolder resource using the corresponding ViewHolderToken.
Fields§
§value: EventPairTrait Implementations§
Source§impl<___E> Encode<ViewToken, ___E> for ViewTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<ViewToken, ___E> for ViewTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, ViewToken>
const COPY_OPTIMIZATION: CopyOptimization<Self, ViewToken>
Source§impl<___E> EncodeOption<Box<'static, ViewToken>, ___E> for ViewToken
impl<___E> EncodeOption<Box<'static, ViewToken>, ___E> for ViewToken
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, ViewToken>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, ViewToken>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl StructuralPartialEq for ViewToken
Auto Trait Implementations§
impl Freeze for ViewToken
impl RefUnwindSafe for ViewToken
impl Send for ViewToken
impl Sync for ViewToken
impl Unpin for ViewToken
impl UnsafeUnpin for ViewToken
impl UnwindSafe for ViewToken
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]