#[repr(C)]
pub struct esp_partition_t { pub flash_chip: *mut esp_flash_t, pub type_: esp_partition_type_t, pub subtype: esp_partition_subtype_t, pub address: u32, pub size: u32, pub label: [c_char; 17], pub encrypted: bool, }
Expand description

@brief partition information structure

This is not the format in flash, that format is esp_partition_info_t.

However, this is the format used by this API.

Fields

flash_chip: *mut esp_flash_t

< SPI flash chip on which the partition resides

type_: esp_partition_type_t

< partition type (app/data)

subtype: esp_partition_subtype_t

< partition subtype

address: u32

< starting address of the partition in flash

size: u32

< size of the partition, in bytes

label: [c_char; 17]

< partition label, zero-terminated ASCII string

encrypted: bool

< flag is set to true if partition is encrypted

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.