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: Channel
Trait Implementations§
Source§impl Debug for ViewportCreationToken
impl Debug for ViewportCreationToken
Source§impl Decode<ViewportCreationToken, DefaultFuchsiaResourceDialect> for ViewportCreationToken
impl Decode<ViewportCreationToken, DefaultFuchsiaResourceDialect> for ViewportCreationToken
Source§fn new_empty() -> ViewportCreationToken
fn new_empty() -> ViewportCreationToken
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl Encode<ViewportCreationToken, DefaultFuchsiaResourceDialect> for &mut ViewportCreationToken
impl Encode<ViewportCreationToken, DefaultFuchsiaResourceDialect> for &mut ViewportCreationToken
Source§impl Hash for ViewportCreationToken
impl Hash for ViewportCreationToken
Source§impl Ord for ViewportCreationToken
impl Ord for ViewportCreationToken
Source§fn cmp(&self, other: &ViewportCreationToken) -> Ordering
fn cmp(&self, other: &ViewportCreationToken) -> 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 for ViewportCreationToken
impl PartialEq for ViewportCreationToken
Source§impl PartialOrd for ViewportCreationToken
impl PartialOrd for ViewportCreationToken
Source§impl ResourceTypeMarker for ViewportCreationToken
impl ResourceTypeMarker for ViewportCreationToken
Source§type Borrowed<'a> = &'a mut ViewportCreationToken
type Borrowed<'a> = &'a mut ViewportCreationToken
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 <ViewportCreationToken as TypeMarker>::Owned,
) -> <ViewportCreationToken as ResourceTypeMarker>::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <ViewportCreationToken as TypeMarker>::Owned, ) -> <ViewportCreationToken as ResourceTypeMarker>::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 ViewportCreationToken
impl TypeMarker for ViewportCreationToken
Source§type Owned = ViewportCreationToken
type Owned = ViewportCreationToken
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
.Source§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 moreSource§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.impl Eq for ViewportCreationToken
impl Standalone<DefaultFuchsiaResourceDialect> 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 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