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§
Source§impl DriverPackageType
impl DriverPackageType
pub fn from_primitive(prim: u8) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u8) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for DriverPackageType
impl Clone for DriverPackageType
Source§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 moreSource§impl Debug for DriverPackageType
impl Debug for DriverPackageType
Source§impl<D: ResourceDialect> Decode<DriverPackageType, D> for DriverPackageType
impl<D: ResourceDialect> Decode<DriverPackageType, D> for DriverPackageType
Source§impl<D: ResourceDialect> Encode<DriverPackageType, D> for DriverPackageType
impl<D: ResourceDialect> Encode<DriverPackageType, D> for DriverPackageType
Source§impl Hash for DriverPackageType
impl Hash for DriverPackageType
Source§impl Ord for DriverPackageType
impl Ord for DriverPackageType
Source§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
Source§impl PartialEq for DriverPackageType
impl PartialEq for DriverPackageType
Source§impl PartialOrd for DriverPackageType
impl PartialOrd for DriverPackageType
Source§impl TypeMarker for DriverPackageType
impl TypeMarker for DriverPackageType
Source§type Owned = DriverPackageType
type Owned = DriverPackageType
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.Source§impl ValueTypeMarker for DriverPackageType
impl ValueTypeMarker for DriverPackageType
Source§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 moreimpl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)