Struct stm32l0xx_hal::pwr::SleepMode
source · [−]pub struct SleepMode<'r> { /* private fields */ }
Expand description
Sleep mode
You can get an instance of this struct by calling PWR::sleep_mode
.
The PowerMode
implementation of this type will block until something wakes
the microcontroller up again. Please make sure to configure an interrupt, or
it could block forever.
Please note that entering Sleep mode may change the SCB configuration.
Trait Implementations
Auto Trait Implementations
impl<'r> RefUnwindSafe for SleepMode<'r>
impl<'r> Send for SleepMode<'r>
impl<'r> !Sync for SleepMode<'r>
impl<'r> Unpin for SleepMode<'r>
impl<'r> !UnwindSafe for SleepMode<'r>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more