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
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