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
§fn eq(&self, other: &PowerModeInStopMode) -> bool
fn eq(&self, other: &PowerModeInStopMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for PowerModeInStopMode
impl PartialOrd for PowerModeInStopMode
§fn partial_cmp(&self, other: &PowerModeInStopMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PowerModeInStopMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PowerModeInStopMode
impl Eq for PowerModeInStopMode
impl StructuralEq for PowerModeInStopMode
impl StructuralPartialEq for PowerModeInStopMode
Auto Trait Implementations§
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