#[repr(i32)]pub enum MCUbootMode {
MCUBOOT_MODE_SINGLE_SLOT = 0,
MCUBOOT_MODE_SWAP_USING_SCRATCH = 1,
MCUBOOT_MODE_UPGRADE_ONLY = 2,
MCUBOOT_MODE_SWAP_USING_MOVE = 3,
MCUBOOT_MODE_DIRECT_XIP = 4,
MCUBOOT_MODE_DIRECT_XIP_WITH_REVERT = 5,
MCUBOOT_MODE_RAM_LOAD = 6,
MCUBOOT_MODE_FIRMWARE_LOADER = 7,
MCUBOOT_MODE_SINGLE_SLOT_RAM_LOAD = 8,
MCUBOOT_MODE_SWAP_USING_OFFSET = 9,
}Expand description
MCUboot modes
See enum mcuboot_mode.
Variants§
MCUBOOT_MODE_SINGLE_SLOT = 0
MCUBOOT_MODE_SWAP_USING_SCRATCH = 1
MCUBOOT_MODE_UPGRADE_ONLY = 2
MCUBOOT_MODE_SWAP_USING_MOVE = 3
MCUBOOT_MODE_DIRECT_XIP = 4
MCUBOOT_MODE_DIRECT_XIP_WITH_REVERT = 5
MCUBOOT_MODE_RAM_LOAD = 6
MCUBOOT_MODE_FIRMWARE_LOADER = 7
MCUBOOT_MODE_SINGLE_SLOT_RAM_LOAD = 8
MCUBOOT_MODE_SWAP_USING_OFFSET = 9
Implementations§
Source§impl MCUbootMode
impl MCUbootMode
Trait Implementations§
Source§impl Clone for MCUbootMode
impl Clone for MCUbootMode
Source§fn clone(&self) -> MCUbootMode
fn clone(&self) -> MCUbootMode
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 MCUbootMode
impl Debug for MCUbootMode
Source§impl Display for MCUbootMode
impl Display for MCUbootMode
Source§impl<'_derivative_strum> From<&'_derivative_strum MCUbootMode> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum MCUbootMode> for &'static str
Source§fn from(x: &'_derivative_strum MCUbootMode) -> &'static str
fn from(x: &'_derivative_strum MCUbootMode) -> &'static str
Converts to this type from the input type.
Source§impl From<MCUbootMode> for &'static str
impl From<MCUbootMode> for &'static str
Source§fn from(x: MCUbootMode) -> &'static str
fn from(x: MCUbootMode) -> &'static str
Converts to this type from the input type.
Source§impl PartialEq for MCUbootMode
impl PartialEq for MCUbootMode
impl Copy for MCUbootMode
impl Eq for MCUbootMode
impl StructuralPartialEq for MCUbootMode
Auto Trait Implementations§
impl Freeze for MCUbootMode
impl RefUnwindSafe for MCUbootMode
impl Send for MCUbootMode
impl Sync for MCUbootMode
impl Unpin for MCUbootMode
impl UnwindSafe for MCUbootMode
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