#[repr(u8)]pub enum ApplicationActivityLevel {
Inactive = 0,
Active = 1,
UnknownOrdinal_(u8),
}Expand description
Application activity power levels
Elements that need to keep the system from suspending should take an assertive
dependency on ApplicationActivityLevel::ACTIVE. When these components are
performing work, they should request a lease to ensure the system remains
active, and drop the lease when they are done.
Variants§
Trait Implementations§
Source§impl Clone for ApplicationActivityLevel
impl Clone for ApplicationActivityLevel
Source§fn clone(&self) -> ApplicationActivityLevel
fn clone(&self) -> ApplicationActivityLevel
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 ApplicationActivityLevel
impl Debug for ApplicationActivityLevel
Source§impl<'a, ___E> Encode<ApplicationActivityLevel, ___E> for &'a ApplicationActivityLevelwhere
___E: ?Sized,
impl<'a, ___E> Encode<ApplicationActivityLevel, ___E> for &'a ApplicationActivityLevelwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ApplicationActivityLevel>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ApplicationActivityLevel>, _: (), ) -> 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<ApplicationActivityLevel, ___E> for ApplicationActivityLevelwhere
___E: ?Sized,
impl<___E> Encode<ApplicationActivityLevel, ___E> for ApplicationActivityLevelwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ApplicationActivityLevel>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ApplicationActivityLevel>, _: (), ) -> 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<ApplicationActivityLevel> for ApplicationActivityLevel
impl From<ApplicationActivityLevel> for ApplicationActivityLevel
Source§fn from(wire: ApplicationActivityLevel) -> ApplicationActivityLevel
fn from(wire: ApplicationActivityLevel) -> ApplicationActivityLevel
Converts to this type from the input type.
Source§impl From<ApplicationActivityLevel> for ApplicationActivityLevel
impl From<ApplicationActivityLevel> for ApplicationActivityLevel
Source§fn from(natural: ApplicationActivityLevel) -> ApplicationActivityLevel
fn from(natural: ApplicationActivityLevel) -> ApplicationActivityLevel
Converts to this type from the input type.
Source§impl From<u8> for ApplicationActivityLevel
impl From<u8> for ApplicationActivityLevel
Source§fn from(value: u8) -> ApplicationActivityLevel
fn from(value: u8) -> ApplicationActivityLevel
Converts to this type from the input type.
Source§impl FromWire<ApplicationActivityLevel> for ApplicationActivityLevel
impl FromWire<ApplicationActivityLevel> for ApplicationActivityLevel
Source§fn from_wire(wire: ApplicationActivityLevel) -> ApplicationActivityLevel
fn from_wire(wire: ApplicationActivityLevel) -> ApplicationActivityLevel
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<ApplicationActivityLevel> for ApplicationActivityLevel
impl FromWireRef<ApplicationActivityLevel> for ApplicationActivityLevel
Source§fn from_wire_ref(wire: &ApplicationActivityLevel) -> ApplicationActivityLevel
fn from_wire_ref(wire: &ApplicationActivityLevel) -> ApplicationActivityLevel
Converts the given reference to this type.
Source§impl Hash for ApplicationActivityLevel
impl Hash for ApplicationActivityLevel
Source§impl Ord for ApplicationActivityLevel
impl Ord for ApplicationActivityLevel
Source§fn cmp(&self, other: &ApplicationActivityLevel) -> Ordering
fn cmp(&self, other: &ApplicationActivityLevel) -> 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 ApplicationActivityLevel
impl PartialEq for ApplicationActivityLevel
Source§impl PartialOrd for ApplicationActivityLevel
impl PartialOrd for ApplicationActivityLevel
impl Copy for ApplicationActivityLevel
impl Eq for ApplicationActivityLevel
impl StructuralPartialEq for ApplicationActivityLevel
Auto Trait Implementations§
impl Freeze for ApplicationActivityLevel
impl RefUnwindSafe for ApplicationActivityLevel
impl Send for ApplicationActivityLevel
impl Sync for ApplicationActivityLevel
impl Unpin for ApplicationActivityLevel
impl UnsafeUnpin for ApplicationActivityLevel
impl UnwindSafe for ApplicationActivityLevel
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]