pub struct PartitionEntry<'a> { /* private fields */ }
Expand description
Represents a single partition entry.
Implementations§
Source§impl<'a> PartitionEntry<'a>
impl<'a> PartitionEntry<'a>
Sourcepub fn raw_subtype(&self) -> u8
pub fn raw_subtype(&self) -> u8
The partition sub-type in raw representation.
Sourcepub fn label_as_str(&self) -> &'a str
pub fn label_as_str(&self) -> &'a str
The label of the partition as &str
.
Sourcepub fn flags(&self) -> u32
pub fn flags(&self) -> u32
Raw flags of this partition. You probably want to use Self::is_read_only and Self::is_encrypted instead.
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
If the partition is read only.
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
If the partition is encrypted.
Sourcepub fn partition_type(&self) -> PartitionType
pub fn partition_type(&self) -> PartitionType
The partition type (type and sub-type).
Sourcepub fn as_embedded_storage<F>(&'a self, flash: &'a mut F) -> FlashRegion<'a, F>where
F: ReadStorage,
pub fn as_embedded_storage<F>(&'a self, flash: &'a mut F) -> FlashRegion<'a, F>where
F: ReadStorage,
Provides a “view” into the partition allowing to read/write the partition contents by using the given embedded_storage::Storage and/or embedded_storage::ReadStorage implementation.