Enum PrincipalType
pub enum PrincipalType {
Runnable,
Part,
// some variants omitted
}
Variants§
Runnable
An independent unit of computation that can be described as running, such as a component or an application.
Runnable principals will be shown in the default memory view.
Part
A part of another principal that isn’t independent, such as a cache.
Part principals will be shown in the detailed memory view of the principal they are a part of.
Implementations§
§impl PrincipalType
impl PrincipalType
pub fn from_primitive(prim: u32) -> Option<PrincipalType>
pub fn from_primitive_allow_unknown(prim: u32) -> PrincipalType
pub fn unknown() -> PrincipalType
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for PrincipalType
impl Clone for PrincipalType
§fn clone(&self) -> PrincipalType
fn clone(&self) -> PrincipalType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for PrincipalType
impl Debug for PrincipalType
§impl<D> Decode<PrincipalType, D> for PrincipalTypewhere
D: ResourceDialect,
impl<D> Decode<PrincipalType, D> for PrincipalTypewhere
D: ResourceDialect,
§fn new_empty() -> PrincipalType
fn new_empty() -> PrincipalType
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<PrincipalType, D> for PrincipalTypewhere
D: ResourceDialect,
impl<D> Encode<PrincipalType, D> for PrincipalTypewhere
D: ResourceDialect,
§impl Hash for PrincipalType
impl Hash for PrincipalType
§impl Ord for PrincipalType
impl Ord for PrincipalType
§impl PartialEq for PrincipalType
impl PartialEq for PrincipalType
§impl PartialOrd for PrincipalType
impl PartialOrd for PrincipalType
§impl TypeMarker for PrincipalType
impl TypeMarker for PrincipalType
§type Owned = PrincipalType
type Owned = PrincipalType
The owned Rust type which this FIDL type decodes into.
§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.
§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 ValueTypeMarker for PrincipalType
impl ValueTypeMarker for PrincipalType
§type Borrowed<'a> = PrincipalType
type Borrowed<'a> = PrincipalType
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<PrincipalType as TypeMarker>::Owned,
) -> <PrincipalType as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PrincipalType as TypeMarker>::Owned, ) -> <PrincipalType as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for PrincipalType
impl Eq for PrincipalType
impl StructuralPartialEq for PrincipalType
Auto Trait Implementations§
impl Freeze for PrincipalType
impl RefUnwindSafe for PrincipalType
impl Send for PrincipalType
impl Sync for PrincipalType
impl Unpin for PrincipalType
impl UnwindSafe for PrincipalType
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