amebazii::conf::pt

Struct PartitionTableCfg

Source
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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PartitionTableCfg

Source§

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 of PartitionItemCfg items.
Source§

impl<'de> Deserialize<'de> for PartitionTableCfg

Source§

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

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryInto<PartTab> for PartitionTableCfg

Source§

fn try_into(self) -> Result<PartTab, Self::Error>

Converts a PartitionTableCfg instance into a PartTab instance.

§Returns:
  • Ok(PartTab): A PartTab 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.
Source§

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,