#[repr(u8)]pub enum ExecutionStateLevel {
Inactive = 0,
Suspending = 1,
Active = 2,
UnknownOrdinal_(u8),
}Expand description
Execution state power levels
Elements should take an opportunistic dependency on ExecutionStateLevel::ACTIVE
to ensure that the element will be suspended when the rest of the system
suspends.
Drivers can take an opportunistic dependency on either
ExecutionStateLevel::SUSPENDING or ExecutionStateLevel::ACTIVE and
request a persistent lease on this state to ensure that their element’s
power level is always activated when the system comes out of a suspend
state.
Variants§
Trait Implementations§
Source§impl Clone for ExecutionStateLevel
impl Clone for ExecutionStateLevel
Source§fn clone(&self) -> ExecutionStateLevel
fn clone(&self) -> ExecutionStateLevel
Returns a duplicate 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 ExecutionStateLevel
impl Debug for ExecutionStateLevel
Source§impl<'a, ___E> Encode<ExecutionStateLevel, ___E> for &'a ExecutionStateLevelwhere
___E: ?Sized,
impl<'a, ___E> Encode<ExecutionStateLevel, ___E> for &'a ExecutionStateLevelwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ExecutionStateLevel>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ExecutionStateLevel>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<ExecutionStateLevel, ___E> for ExecutionStateLevelwhere
___E: ?Sized,
impl<___E> Encode<ExecutionStateLevel, ___E> for ExecutionStateLevelwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ExecutionStateLevel>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ExecutionStateLevel>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<ExecutionStateLevel> for ExecutionStateLevel
impl From<ExecutionStateLevel> for ExecutionStateLevel
Source§fn from(wire: ExecutionStateLevel) -> Self
fn from(wire: ExecutionStateLevel) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionStateLevel> for ExecutionStateLevel
impl From<ExecutionStateLevel> for ExecutionStateLevel
Source§fn from(natural: ExecutionStateLevel) -> Self
fn from(natural: ExecutionStateLevel) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ExecutionStateLevel
impl From<u8> for ExecutionStateLevel
Source§impl FromWire<ExecutionStateLevel> for ExecutionStateLevel
impl FromWire<ExecutionStateLevel> for ExecutionStateLevel
Source§fn from_wire(wire: ExecutionStateLevel) -> Self
fn from_wire(wire: ExecutionStateLevel) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<ExecutionStateLevel> for ExecutionStateLevel
impl FromWireRef<ExecutionStateLevel> for ExecutionStateLevel
Source§fn from_wire_ref(wire: &ExecutionStateLevel) -> Self
fn from_wire_ref(wire: &ExecutionStateLevel) -> Self
Converts the given reference to this type.
Source§impl Hash for ExecutionStateLevel
impl Hash for ExecutionStateLevel
Source§impl Ord for ExecutionStateLevel
impl Ord for ExecutionStateLevel
Source§fn cmp(&self, other: &ExecutionStateLevel) -> Ordering
fn cmp(&self, other: &ExecutionStateLevel) -> 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 ExecutionStateLevel
impl PartialEq for ExecutionStateLevel
Source§impl PartialOrd for ExecutionStateLevel
impl PartialOrd for ExecutionStateLevel
impl Copy for ExecutionStateLevel
impl Eq for ExecutionStateLevel
impl StructuralPartialEq for ExecutionStateLevel
Auto Trait Implementations§
impl Freeze for ExecutionStateLevel
impl RefUnwindSafe for ExecutionStateLevel
impl Send for ExecutionStateLevel
impl Sync for ExecutionStateLevel
impl Unpin for ExecutionStateLevel
impl UnsafeUnpin for ExecutionStateLevel
impl UnwindSafe for ExecutionStateLevel
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]