#[repr(C)]pub struct ViewportCreationToken {
pub value: Channel,
}Expand description
Two Flatland instances may be connected in a parent-child relationship. The parent endpoint is held in a Viewport.
ViewportCreationToken is a typed wrapper for a channel, representing the parent endpoint of the connection between two Flatlands. No messages will be sent over this channel, because it is only used as an unclonable object with peer.
Fields§
§value: ChannelTrait Implementations§
Source§impl Debug for ViewportCreationToken
impl Debug for ViewportCreationToken
Source§impl<___E> Encode<ViewportCreationToken, ___E> for ViewportCreationTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<ViewportCreationToken, ___E> for ViewportCreationTokenwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, ViewportCreationToken>
const COPY_OPTIMIZATION: CopyOptimization<Self, ViewportCreationToken>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<ViewportCreationToken>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<ViewportCreationToken>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, ViewportCreationToken>, ___E> for ViewportCreationToken
impl<___E> EncodeOption<Box<'static, ViewportCreationToken>, ___E> for ViewportCreationToken
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, ViewportCreationToken>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, ViewportCreationToken>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWire<ViewportCreationToken> for ViewportCreationToken
impl FromWire<ViewportCreationToken> for ViewportCreationToken
Source§const COPY_OPTIMIZATION: CopyOptimization<ViewportCreationToken, Self>
const COPY_OPTIMIZATION: CopyOptimization<ViewportCreationToken, Self>
Source§fn from_wire(wire: ViewportCreationToken) -> Self
fn from_wire(wire: ViewportCreationToken) -> Self
Converts the given owned value to this type.
Source§impl PartialEq for ViewportCreationToken
impl PartialEq for ViewportCreationToken
impl StructuralPartialEq for ViewportCreationToken
Auto Trait Implementations§
impl Freeze for ViewportCreationToken
impl RefUnwindSafe for ViewportCreationToken
impl Send for ViewportCreationToken
impl Sync for ViewportCreationToken
impl Unpin for ViewportCreationToken
impl UnsafeUnpin for ViewportCreationToken
impl UnwindSafe for ViewportCreationToken
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]