#[repr(C)]pub struct InstanceToken {
pub token: Handle,
}
Expand description
Represents an instance in the component tree, either a component instance or component manager’s instance.
Fields§
§token: Handle
Trait Implementations§
Source§impl Debug for InstanceToken
impl Debug for InstanceToken
Source§impl Encodable for InstanceToken
impl Encodable for InstanceToken
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§type Encoded = WireInstanceToken
type Encoded = WireInstanceToken
The wire type for the value.
Source§impl EncodableOption for Box<InstanceToken>
impl EncodableOption for Box<InstanceToken>
Source§type EncodedOption = WireBox<WireInstanceToken>
type EncodedOption = WireBox<WireInstanceToken>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for InstanceTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for InstanceTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<InstanceToken>where
___E: Encoder + ?Sized,
InstanceToken: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<InstanceToken>where
___E: Encoder + ?Sized,
InstanceToken: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireInstanceToken> for InstanceToken
impl TakeFrom<WireInstanceToken> for InstanceToken
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§fn take_from(from: &WireInstanceToken) -> Self
fn take_from(from: &WireInstanceToken) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Auto Trait Implementations§
impl Freeze for InstanceToken
impl RefUnwindSafe for InstanceToken
impl Send for InstanceToken
impl Sync for InstanceToken
impl Unpin for InstanceToken
impl UnwindSafe for InstanceToken
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