pub struct PartitionTableCfg {
pub rma_w_state: u8,
pub rma_ov_state: u8,
pub eFWV: u8,
pub fw1_idx: u8,
pub fw2_idx: u8,
pub ota_trap: Option<TrapConfig>,
pub mp_trap: Option<TrapConfig>,
pub key_exp_op: KeyExportOp,
pub user_ext: Option<DataArray<12>>,
pub user_bin: Option<DataArray<256>>,
pub items: Vec<PartitionItemCfg>,
}
Expand description
Represents the partition table configuration.
This struct holds the configuration settings for a partition table.
Fields§
§rma_w_state: u8
§rma_ov_state: u8
§eFWV: u8
§fw1_idx: u8
§fw2_idx: u8
§ota_trap: Option<TrapConfig>
§mp_trap: Option<TrapConfig>
§key_exp_op: KeyExportOp
§user_ext: Option<DataArray<12>>
§user_bin: Option<DataArray<256>>
§items: Vec<PartitionItemCfg>
Trait Implementations§
Source§impl Debug for PartitionTableCfg
impl Debug for PartitionTableCfg
Source§impl Default for PartitionTableCfg
impl Default for PartitionTableCfg
Source§fn default() -> Self
fn default() -> Self
Returns the default configuration for a PartitionTableCfg
instance.
The default values are:
rma_w_state
:0xFF
rma_ov_state
:0xFF
eFWV
:0
fw1_idx
:0
fw2_idx
:0
ota_trap
:None
mp_trap
:None
key_exp_op
:KeyExportOp::None
user_ext
:None
user_bin
:None
items
: An empty vector ofPartitionItemCfg
items.
Source§impl<'de> Deserialize<'de> for PartitionTableCfg
impl<'de> Deserialize<'de> for PartitionTableCfg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PartitionTableCfg
impl Serialize for PartitionTableCfg
Source§impl TryInto<PartTab> for PartitionTableCfg
impl TryInto<PartTab> for PartitionTableCfg
Source§fn try_into(self) -> Result<PartTab, Self::Error>
fn try_into(self) -> Result<PartTab, Self::Error>
Converts a PartitionTableCfg
instance into a PartTab
instance.
§Returns:
Ok(PartTab)
: APartTab
instance with the appropriate values set.Err(Error)
: An error if something goes wrong, such as if the user extension file does not exist or cannot be read.
Auto Trait Implementations§
impl Freeze for PartitionTableCfg
impl RefUnwindSafe for PartitionTableCfg
impl Send for PartitionTableCfg
impl Sync for PartitionTableCfg
impl Unpin for PartitionTableCfg
impl UnwindSafe for PartitionTableCfg
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