Enum stm32_metapac::pwr::vals::PowerModeInStopMode
#[repr(u8)]pub enum PowerModeInStopMode {
NORMAL = 0,
LOWPOWER = 1,
}
Variants§
NORMAL = 0
Remains in normal mode when the system enters Stop mode (quick restart time).
LOWPOWER = 1
Enters low-power mode when the system enters Stop mode (low-power consumption).
Implementations§
§impl PowerModeInStopMode
impl PowerModeInStopMode
pub const fn from_bits(val: u8) -> PowerModeInStopMode
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for PowerModeInStopMode
impl Clone for PowerModeInStopMode
§fn clone(&self) -> PowerModeInStopMode
fn clone(&self) -> PowerModeInStopMode
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 From<PowerModeInStopMode> for u8
impl From<PowerModeInStopMode> for u8
§fn from(val: PowerModeInStopMode) -> u8
fn from(val: PowerModeInStopMode) -> u8
Converts to this type from the input type.
§impl From<u8> for PowerModeInStopMode
impl From<u8> for PowerModeInStopMode
§fn from(val: u8) -> PowerModeInStopMode
fn from(val: u8) -> PowerModeInStopMode
Converts to this type from the input type.
§impl Ord for PowerModeInStopMode
impl Ord for PowerModeInStopMode
§fn cmp(&self, other: &PowerModeInStopMode) -> Ordering
fn cmp(&self, other: &PowerModeInStopMode) -> 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
§impl PartialEq for PowerModeInStopMode
impl PartialEq for PowerModeInStopMode
§impl PartialOrd for PowerModeInStopMode
impl PartialOrd for PowerModeInStopMode
impl Copy for PowerModeInStopMode
impl Eq for PowerModeInStopMode
impl StructuralPartialEq for PowerModeInStopMode
Auto Trait Implementations§
impl Freeze for PowerModeInStopMode
impl RefUnwindSafe for PowerModeInStopMode
impl Send for PowerModeInStopMode
impl Sync for PowerModeInStopMode
impl Unpin for PowerModeInStopMode
impl UnwindSafe for PowerModeInStopMode
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
)