#[repr(u32)]pub enum FunctionCode {
Show 14 variants
Invalid = 0,
Boot0 = 1,
Boot1 = 2,
UpdatedBoot1 = 3,
Loader = 4,
UpdatedLoader = 5,
Baremetal = 6,
UpdatedBaremetal = 7,
Kernel = 256,
UpdatedKernel = 257,
Swap = 32_768,
UpdatedSwap = 32_769,
App = 1_048_576,
UpdatedApp = 1_048_577,
}Expand description
These are notional and subject to change
Variants§
Invalid = 0
Should never be used
Boot0 = 1
Code for a valid boot0 region
Boot1 = 2
Code for a valid boot1 region
UpdatedBoot1 = 3
Expected code when being passed a boot1 region update. Self-signing/sealing implementations can change this code to Boot1; externally signed implementations would accept UpdatedBoot1 as interchangeable with Boot1
Loader = 4
Loader
UpdatedLoader = 5
Baremetal = 6
Baremetal options
UpdatedBaremetal = 7
Kernel = 256
Kernel region
UpdatedKernel = 257
Swap = 32_768
Swap region
UpdatedSwap = 32_769
App = 1_048_576
Application region
UpdatedApp = 1_048_577
Implementations§
Source§impl FunctionCode
impl FunctionCode
pub fn to_anti_rollback_counter(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for FunctionCode
impl Clone for FunctionCode
Source§fn clone(&self) -> FunctionCode
fn clone(&self) -> FunctionCode
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 PartialEq for FunctionCode
impl PartialEq for FunctionCode
Source§impl TryFrom<u32> for FunctionCode
impl TryFrom<u32> for FunctionCode
Source§type Error = TryFromPrimitiveError<FunctionCode>
type Error = TryFromPrimitiveError<FunctionCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FunctionCode
impl TryFromPrimitive for FunctionCode
impl Copy for FunctionCode
impl Eq for FunctionCode
impl StructuralPartialEq for FunctionCode
Auto Trait Implementations§
impl Freeze for FunctionCode
impl RefUnwindSafe for FunctionCode
impl Send for FunctionCode
impl Sync for FunctionCode
impl Unpin for FunctionCode
impl UnwindSafe for FunctionCode
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