Enum tock_tbf::types::TbfHeaderTypes
source · pub enum TbfHeaderTypes {
TbfHeaderMain = 1,
TbfHeaderWriteableFlashRegions = 2,
TbfHeaderPackageName = 3,
TbfHeaderFixedAddresses = 5,
TbfHeaderPermissions = 6,
TbfHeaderStoragePermissions = 7,
TbfHeaderKernelVersion = 8,
TbfHeaderProgram = 9,
TbfHeaderShortId = 10,
TbfFooterCredentials = 128,
Unknown = 129,
}
Expand description
Types in TLV structures for each optional block of the header.
Variants§
TbfHeaderMain = 1
TbfHeaderWriteableFlashRegions = 2
TbfHeaderPackageName = 3
TbfHeaderFixedAddresses = 5
TbfHeaderPermissions = 6
TbfHeaderStoragePermissions = 7
TbfHeaderKernelVersion = 8
TbfHeaderProgram = 9
TbfHeaderShortId = 10
Unknown = 129
Some field in the header that we do not understand. Since the TLV format specifies the length of each section, if we get a field we do not understand we just skip it, rather than throwing an error.
Trait Implementations§
source§impl Clone for TbfHeaderTypes
impl Clone for TbfHeaderTypes
source§fn clone(&self) -> TbfHeaderTypes
fn clone(&self) -> TbfHeaderTypes
Returns a copy 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 TbfHeaderTypes
impl Debug for TbfHeaderTypes
source§impl TryFrom<u16> for TbfHeaderTypes
impl TryFrom<u16> for TbfHeaderTypes
§type Error = TbfParseError
type Error = TbfParseError
The type returned in the event of a conversion error.
impl Copy for TbfHeaderTypes
Auto Trait Implementations§
impl Freeze for TbfHeaderTypes
impl RefUnwindSafe for TbfHeaderTypes
impl Send for TbfHeaderTypes
impl Sync for TbfHeaderTypes
impl Unpin for TbfHeaderTypes
impl UnwindSafe for TbfHeaderTypes
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)