Enum DataPartitionSubType

Source
#[repr(u8)]
pub enum DataPartitionSubType { Ota = 0, Phy = 1, Nvs = 2, Coredump = 3, NvsKeys = 4, EfuseEm = 5, Undefined = 6, Fat = 129, Spiffs = 130, LittleFs = 131, }
Expand description

Sub-types of the data partition type.

Variants§

§

Ota = 0

Data partition which stores information about the currently selected OTA app slot. This partition should be 0x2000 bytes in size. Refer to the OTA documentation for more details.

§

Phy = 1

Phy is for storing PHY initialization data. This allows PHY to be configured per-device, instead of in firmware.

§

Nvs = 2

Used for Non-Volatile Storage (NVS).

§

Coredump = 3

Used for storing core dumps while using a custom partition table

§

NvsKeys = 4

NvsKeys is used for the NVS key partition. (NVS).

§

EfuseEm = 5

Used for emulating eFuse bits using Virtual eFuses.

§

Undefined = 6

Implicitly used for data partitions with unspecified (empty) subtype, but it is possible to explicitly mark them as undefined as well.

§

Fat = 129

FAT Filesystem Support.

§

Spiffs = 130

SPIFFS Filesystem.

§

LittleFs = 131

LittleFS filesystem.

Implementations§

Source§

impl DataPartitionSubType

Source

pub const fn from_repr(discriminant: u8) -> Option<DataPartitionSubType>

Try to create Self from the raw representation

Trait Implementations§

Source§

impl Clone for DataPartitionSubType

Source§

fn clone(&self) -> DataPartitionSubType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DataPartitionSubType

Source§

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

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

impl Hash for DataPartitionSubType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DataPartitionSubType

Source§

fn eq(&self, other: &DataPartitionSubType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for DataPartitionSubType

Source§

type Error = Error

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for DataPartitionSubType

Source§

impl Eq for DataPartitionSubType

Source§

impl StructuralPartialEq for DataPartitionSubType

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
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.