Struct esp_idf_sys::esp_partition_t
source · [−]#[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
sourceimpl Clone for esp_partition_t
impl Clone for esp_partition_t
sourcefn clone(&self) -> esp_partition_t
fn clone(&self) -> esp_partition_t
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for esp_partition_t
impl Debug for esp_partition_t
sourceimpl Default for esp_partition_t
impl Default for esp_partition_t
impl Copy for esp_partition_t
Auto Trait Implementations
impl RefUnwindSafe for esp_partition_t
impl !Send for esp_partition_t
impl !Sync for esp_partition_t
impl Unpin for esp_partition_t
impl UnwindSafe for esp_partition_t
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more