#[repr(u8)]pub enum PowerMode {
HighPerformance = 0,
Balanced = 1,
LowPower = 2,
UltraLowPower = 3,
Sleep = 4,
DeepSleep = 5,
}Expand description
Power mode levels
Variants§
HighPerformance = 0
Full performance, maximum power consumption
Balanced = 1
Balanced performance and power
LowPower = 2
Low power, reduced performance
UltraLowPower = 3
Ultra low power, minimal functionality
Sleep = 4
Sleep mode, CPU halted
DeepSleep = 5
Deep sleep, most peripherals off
Implementations§
Trait Implementations§
Source§impl Ord for PowerMode
impl Ord for PowerMode
Source§impl PartialOrd for PowerMode
impl PartialOrd for PowerMode
impl Copy for PowerMode
impl Eq for PowerMode
impl StructuralPartialEq for PowerMode
Auto Trait Implementations§
impl Freeze for PowerMode
impl RefUnwindSafe for PowerMode
impl Send for PowerMode
impl Sync for PowerMode
impl Unpin for PowerMode
impl UnsafeUnpin for PowerMode
impl UnwindSafe for PowerMode
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