pub enum Description {
Component(Event),
Part(String),
// some variants omitted
}
Variants§
Component(Event)
Token identifying the component instance run by this principal.
This is the token defined in the component_instance field of fuchsia.component.runner.ComponentStartInfo.
Part(String)
A subpart of a component, which isn’t a fully-blown Component within Component Framework but still represents a coherent unit of computation. This can be, for instance, a Linux process under Starnix.
This name needs to be unique within the component this principal is part of.
Implementations§
Source§impl Description
impl Description
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Self
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Debug for Description
impl Debug for Description
Source§impl Decode<Description, DefaultFuchsiaResourceDialect> for Description
impl Decode<Description, DefaultFuchsiaResourceDialect> for Description
Source§impl Encode<Description, DefaultFuchsiaResourceDialect> for &mut Description
impl Encode<Description, DefaultFuchsiaResourceDialect> for &mut Description
Source§impl PartialEq for Description
impl PartialEq for Description
Source§impl ResourceTypeMarker for Description
impl ResourceTypeMarker for Description
Source§type Borrowed<'a> = &'a mut Description
type Borrowed<'a> = &'a mut Description
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 Description
impl TypeMarker for Description
Source§type Owned = Description
type Owned = Description
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 Standalone<DefaultFuchsiaResourceDialect> for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnwindSafe for Description
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