#[repr(u32)]pub enum ppc_sleep_state_t {
PPC_Sleep_Awake = 0,
PPC_Sleep_MSR = 1,
PPC_Sleep_Doze = 2,
PPC_Sleep_Nap = 3,
PPC_Sleep_Sleep = 4,
PPC_Sleep_Rvwinkle = 5,
PPC_Sleep_Wait = 6,
PPC_Sleep_Waitrsv = 7,
}
Variants§
PPC_Sleep_Awake = 0
Not sleeping at all, this is the normal mode
PPC_Sleep_MSR = 1
Old version of power saving, the only level
PPC_Sleep_Doze = 2
Lowest level of power saving in new version
PPC_Sleep_Nap = 3
PPC_Sleep_Sleep = 4
PPC_Sleep_Rvwinkle = 5
Highest level
PPC_Sleep_Wait = 6
Wait instruction
PPC_Sleep_Waitrsv = 7
Wait reservation
Trait Implementations§
source§impl Clone for ppc_sleep_state_t
impl Clone for ppc_sleep_state_t
source§fn clone(&self) -> ppc_sleep_state_t
fn clone(&self) -> ppc_sleep_state_t
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 ppc_sleep_state_t
impl Debug for ppc_sleep_state_t
source§impl Hash for ppc_sleep_state_t
impl Hash for ppc_sleep_state_t
source§impl Ord for ppc_sleep_state_t
impl Ord for ppc_sleep_state_t
source§fn cmp(&self, other: &ppc_sleep_state_t) -> Ordering
fn cmp(&self, other: &ppc_sleep_state_t) -> 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 ppc_sleep_state_t
impl PartialEq for ppc_sleep_state_t
source§impl PartialOrd for ppc_sleep_state_t
impl PartialOrd for ppc_sleep_state_t
impl Copy for ppc_sleep_state_t
impl Eq for ppc_sleep_state_t
impl StructuralPartialEq for ppc_sleep_state_t
Auto Trait Implementations§
impl Freeze for ppc_sleep_state_t
impl RefUnwindSafe for ppc_sleep_state_t
impl Send for ppc_sleep_state_t
impl Sync for ppc_sleep_state_t
impl Unpin for ppc_sleep_state_t
impl UnwindSafe for ppc_sleep_state_t
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
)