Enum LeaseStatus
pub enum LeaseStatus {
Unknown,
Pending,
Satisfied,
// some variants omitted
}
Variants§
Unknown
Pending
The dependencies of the leased PowerLevel
are not at their required
levels.
Satisfied
The PowerElement
is not necessarily at the PowerLevel
leased,
but the PowerElement
s requried by the leased PowerLevel
’ are at
their required PowerLevel
s.
Implementations§
§impl LeaseStatus
impl LeaseStatus
pub fn from_primitive(prim: u32) -> Option<LeaseStatus>
pub fn from_primitive_allow_unknown(prim: u32) -> LeaseStatus
pub fn unknown() -> LeaseStatus
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for LeaseStatus
impl Clone for LeaseStatus
§fn clone(&self) -> LeaseStatus
fn clone(&self) -> LeaseStatus
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 LeaseStatus
impl Debug for LeaseStatus
§impl<D> Decode<LeaseStatus, D> for LeaseStatuswhere
D: ResourceDialect,
impl<D> Decode<LeaseStatus, D> for LeaseStatuswhere
D: ResourceDialect,
§fn new_empty() -> LeaseStatus
fn new_empty() -> LeaseStatus
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<LeaseStatus, D> for LeaseStatuswhere
D: ResourceDialect,
impl<D> Encode<LeaseStatus, D> for LeaseStatuswhere
D: ResourceDialect,
§impl Hash for LeaseStatus
impl Hash for LeaseStatus
§impl Ord for LeaseStatus
impl Ord for LeaseStatus
§impl PartialEq for LeaseStatus
impl PartialEq for LeaseStatus
§impl PartialOrd for LeaseStatus
impl PartialOrd for LeaseStatus
§impl TypeMarker for LeaseStatus
impl TypeMarker for LeaseStatus
§type Owned = LeaseStatus
type Owned = LeaseStatus
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 LeaseStatus
impl ValueTypeMarker for LeaseStatus
§type Borrowed<'a> = LeaseStatus
type Borrowed<'a> = LeaseStatus
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: &<LeaseStatus as TypeMarker>::Owned,
) -> <LeaseStatus as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<LeaseStatus as TypeMarker>::Owned, ) -> <LeaseStatus as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for LeaseStatus
impl Eq for LeaseStatus
impl StructuralPartialEq for LeaseStatus
Auto Trait Implementations§
impl Freeze for LeaseStatus
impl RefUnwindSafe for LeaseStatus
impl Send for LeaseStatus
impl Sync for LeaseStatus
impl Unpin for LeaseStatus
impl UnwindSafe for LeaseStatus
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