pub enum PowerIntentSource {
ButtonLongPress,
CliCommand,
LowBattery,
UsbCdc1200BaudTouch,
UsbCdcRescueEscape,
}Expand description
Why a PowerIntent was submitted. Useful for logging and
post-mortem reporting via the persisted panic / event log.
Variants§
ButtonLongPress
User long-pressed the button.
CliCommand
User typed a CLI command.
LowBattery
Low-battery monitor decided the cell needs to be protected.
UsbCdc1200BaudTouch
USB host did the 1200-baud DTR-drop dance.
UsbCdcRescueEscape
USB-CDC rescue escape sequence.
Trait Implementations§
Source§impl Clone for PowerIntentSource
impl Clone for PowerIntentSource
Source§fn clone(&self) -> PowerIntentSource
fn clone(&self) -> PowerIntentSource
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerIntentSource
impl Debug for PowerIntentSource
Source§impl PartialEq for PowerIntentSource
impl PartialEq for PowerIntentSource
impl Copy for PowerIntentSource
impl Eq for PowerIntentSource
impl StructuralPartialEq for PowerIntentSource
Auto Trait Implementations§
impl Freeze for PowerIntentSource
impl RefUnwindSafe for PowerIntentSource
impl Send for PowerIntentSource
impl Sync for PowerIntentSource
impl Unpin for PowerIntentSource
impl UnwindSafe for PowerIntentSource
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)