pub enum RescueAction {
None,
TriggerDfu,
}Expand description
What a watcher decided to do as a result of an input event.
Variants§
None
No action this event.
TriggerDfu
Caller should immediately enter DFU mode. The watcher does not
pick a mode — the caller decides between
[bsp::enter_dfu_uf2()] (GPREGRET=0x57, exposes CDC + UF2 mass
storage; what the MeshCore / Adafruit web flashers expect and
what adafruit-nrfutil --touch 1200 triggers in the Adafruit
Arduino reference) and [bsp::enter_dfu_serial()]
(GPREGRET=0x4e, CDC-only; for adafruit-nrfutil / nrfutil
users who explicitly want the slimmer interface).
Trait Implementations§
Source§impl Clone for RescueAction
impl Clone for RescueAction
Source§fn clone(&self) -> RescueAction
fn clone(&self) -> RescueAction
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 RescueAction
impl Debug for RescueAction
Source§impl PartialEq for RescueAction
impl PartialEq for RescueAction
impl Copy for RescueAction
impl Eq for RescueAction
impl StructuralPartialEq for RescueAction
Auto Trait Implementations§
impl Freeze for RescueAction
impl RefUnwindSafe for RescueAction
impl Send for RescueAction
impl Sync for RescueAction
impl Unpin for RescueAction
impl UnwindSafe for RescueAction
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)