pub struct ViewCreationToken {
pub value: Channel,
}
Expand description
Two Flatland instances may be connected in a parent-child relationship. The child endpoint is held in a View. This view is strongly associated with a ViewRef and other related protocols.
ViewCreationToken is a typed wrapper for a channel, representing the child endpoint of the connection between two Flatland instances. 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 ViewCreationToken
impl Debug for ViewCreationToken
Source§impl Decode<ViewCreationToken, DefaultFuchsiaResourceDialect> for ViewCreationToken
impl Decode<ViewCreationToken, DefaultFuchsiaResourceDialect> for ViewCreationToken
Source§impl Encode<ViewCreationToken, DefaultFuchsiaResourceDialect> for &mut ViewCreationToken
impl Encode<ViewCreationToken, DefaultFuchsiaResourceDialect> for &mut ViewCreationToken
Source§impl<T0: Encode<HandleType<Channel, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>> Encode<ViewCreationToken, DefaultFuchsiaResourceDialect> for (T0,)
impl<T0: Encode<HandleType<Channel, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>> Encode<ViewCreationToken, DefaultFuchsiaResourceDialect> for (T0,)
Source§impl Hash for ViewCreationToken
impl Hash for ViewCreationToken
Source§impl Ord for ViewCreationToken
impl Ord for ViewCreationToken
Source§fn cmp(&self, other: &ViewCreationToken) -> Ordering
fn cmp(&self, other: &ViewCreationToken) -> 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 ViewCreationToken
impl PartialEq for ViewCreationToken
Source§impl PartialOrd for ViewCreationToken
impl PartialOrd for ViewCreationToken
Source§impl ResourceTypeMarker for ViewCreationToken
impl ResourceTypeMarker for ViewCreationToken
Source§type Borrowed<'a> = &'a mut ViewCreationToken
type Borrowed<'a> = &'a mut ViewCreationToken
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 <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::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 ViewCreationToken
impl TypeMarker for ViewCreationToken
Source§type Owned = ViewCreationToken
type Owned = ViewCreationToken
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
.§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 more§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 ViewCreationToken
impl Standalone<DefaultFuchsiaResourceDialect> for ViewCreationToken
impl StructuralPartialEq for ViewCreationToken
Auto Trait Implementations§
impl Freeze for ViewCreationToken
impl RefUnwindSafe for ViewCreationToken
impl Send for ViewCreationToken
impl Sync for ViewCreationToken
impl Unpin for ViewCreationToken
impl UnwindSafe for ViewCreationToken
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