pub enum RebootKind {
Normal,
BootSel {
picoboot_disabled: bool,
msd_disabled: bool,
},
Ram {
start_addr: *const u32,
size: usize,
},
FlashUpdate {
start_addr: *const u32,
},
PcSp {
pc: fn() -> !,
sp: *const u32,
},
}Expand description
Types of reboot we support
Variants§
Normal
A normal reboot
BootSel
Boot like BOOTSEL is held down
Fields
Ram
Boot into RAM
Fields
FlashUpdate
Reboot but prefer the flash partition you just wrote
PcSp
Reboot into the given Program Counter and Stack Pointer
Trait Implementations§
Source§impl Clone for RebootKind
impl Clone for RebootKind
Source§fn clone(&self) -> RebootKind
fn clone(&self) -> RebootKind
Returns a duplicate 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 moreSource§impl Debug for RebootKind
impl Debug for RebootKind
Source§impl PartialEq for RebootKind
impl PartialEq for RebootKind
impl Eq for RebootKind
impl StructuralPartialEq for RebootKind
Auto Trait Implementations§
impl Freeze for RebootKind
impl RefUnwindSafe for RebootKind
impl !Send for RebootKind
impl !Sync for RebootKind
impl Unpin for RebootKind
impl UnwindSafe for RebootKind
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§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more