Enum DriverPackageType
pub enum DriverPackageType {
Boot,
Base,
Cached,
Universe,
// some variants omitted
}
Expand description
The type of Fuchsia package that a driver component is inside of. More details about the various package categories are available at: https://fuchsia.dev/fuchsia-src/concepts/packages/package#types_of_packages
Variants§
Boot
BOOT packages are inside the Zircon boot image.
Base
BASE packages are included in the Fuchsia build as static local packages.
Cached
CACHED packages are BASE packages that can be updated during a resolve if a full package resolver is available.
Universe
UNIVERSE packages get onto the device only when resolved by the full package resolver.
Implementations§
§impl DriverPackageType
impl DriverPackageType
pub fn from_primitive(prim: u8) -> Option<DriverPackageType>
pub fn from_primitive_allow_unknown(prim: u8) -> DriverPackageType
pub fn unknown() -> DriverPackageType
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for DriverPackageType
impl Clone for DriverPackageType
§fn clone(&self) -> DriverPackageType
fn clone(&self) -> DriverPackageType
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 DriverPackageType
impl Debug for DriverPackageType
§impl<D> Decode<DriverPackageType, D> for DriverPackageTypewhere
D: ResourceDialect,
impl<D> Decode<DriverPackageType, D> for DriverPackageTypewhere
D: ResourceDialect,
§fn new_empty() -> DriverPackageType
fn new_empty() -> DriverPackageType
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<DriverPackageType, D> for DriverPackageTypewhere
D: ResourceDialect,
impl<D> Encode<DriverPackageType, D> for DriverPackageTypewhere
D: ResourceDialect,
§impl Hash for DriverPackageType
impl Hash for DriverPackageType
§impl Ord for DriverPackageType
impl Ord for DriverPackageType
§fn cmp(&self, other: &DriverPackageType) -> Ordering
fn cmp(&self, other: &DriverPackageType) -> 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
§impl PartialEq for DriverPackageType
impl PartialEq for DriverPackageType
§impl PartialOrd for DriverPackageType
impl PartialOrd for DriverPackageType
§impl TypeMarker for DriverPackageType
impl TypeMarker for DriverPackageType
§type Owned = DriverPackageType
type Owned = DriverPackageType
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 DriverPackageType
impl ValueTypeMarker for DriverPackageType
§type Borrowed<'a> = DriverPackageType
type Borrowed<'a> = DriverPackageType
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: &<DriverPackageType as TypeMarker>::Owned,
) -> <DriverPackageType as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<DriverPackageType as TypeMarker>::Owned, ) -> <DriverPackageType as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for DriverPackageType
impl Eq for DriverPackageType
impl StructuralPartialEq for DriverPackageType
Auto Trait Implementations§
impl Freeze for DriverPackageType
impl RefUnwindSafe for DriverPackageType
impl Send for DriverPackageType
impl Sync for DriverPackageType
impl Unpin for DriverPackageType
impl UnwindSafe for DriverPackageType
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