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>(self, flash: &'a mut F) -> FlashRegion<'a, F>where
F: ReadStorage,
pub fn as_embedded_storage<F>(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.
Trait Implementations§
Source§impl<'a> Clone for PartitionEntry<'a>
impl<'a> Clone for PartitionEntry<'a>
Source§fn clone(&self) -> PartitionEntry<'a>
fn clone(&self) -> PartitionEntry<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionEntry<'_>
impl Debug for PartitionEntry<'_>
Source§impl Format for PartitionEntry<'_>
impl Format for PartitionEntry<'_>
impl<'a> Copy for PartitionEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for PartitionEntry<'a>
impl<'a> RefUnwindSafe for PartitionEntry<'a>
impl<'a> Send for PartitionEntry<'a>
impl<'a> Sync for PartitionEntry<'a>
impl<'a> Unpin for PartitionEntry<'a>
impl<'a> UnwindSafe for PartitionEntry<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)