Enum DependencyType
pub enum DependencyType {
Assertive,
Opportunistic,
// some variants omitted
}
Expand description
An assertive dependency is strongly-fulfilled and orderly-on-termination. An opportunistic dependency is weakly-fulfilled but still orderly-on-termination.
See https://fuchsia.dev/fuchsia-src/contribute/governance/rfcs/0250_power_topology#dependency_types for more details on these definitions.
Variants§
Implementations§
§impl DependencyType
impl DependencyType
pub fn from_primitive(prim: u32) -> Option<DependencyType>
pub fn from_primitive_allow_unknown(prim: u32) -> DependencyType
pub fn unknown() -> DependencyType
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for DependencyType
impl Clone for DependencyType
§fn clone(&self) -> DependencyType
fn clone(&self) -> DependencyType
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 DependencyType
impl Debug for DependencyType
§impl<D> Decode<DependencyType, D> for DependencyTypewhere
D: ResourceDialect,
impl<D> Decode<DependencyType, D> for DependencyTypewhere
D: ResourceDialect,
§fn new_empty() -> DependencyType
fn new_empty() -> DependencyType
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<DependencyType, D> for DependencyTypewhere
D: ResourceDialect,
impl<D> Encode<DependencyType, D> for DependencyTypewhere
D: ResourceDialect,
§impl Hash for DependencyType
impl Hash for DependencyType
§impl Ord for DependencyType
impl Ord for DependencyType
§impl PartialEq for DependencyType
impl PartialEq for DependencyType
§impl PartialOrd for DependencyType
impl PartialOrd for DependencyType
§impl TypeMarker for DependencyType
impl TypeMarker for DependencyType
§type Owned = DependencyType
type Owned = DependencyType
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 DependencyType
impl ValueTypeMarker for DependencyType
§type Borrowed<'a> = DependencyType
type Borrowed<'a> = DependencyType
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: &<DependencyType as TypeMarker>::Owned,
) -> <DependencyType as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<DependencyType as TypeMarker>::Owned, ) -> <DependencyType as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for DependencyType
impl Eq for DependencyType
impl StructuralPartialEq for DependencyType
Auto Trait Implementations§
impl Freeze for DependencyType
impl RefUnwindSafe for DependencyType
impl Send for DependencyType
impl Sync for DependencyType
impl Unpin for DependencyType
impl UnwindSafe for DependencyType
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