#[repr(C, packed(1))]pub struct PartitionInfo {
pub revision: PartitionInfoRevision,
pub partition_type: PartitionType,
/* private fields */
}
Expand description
Protocol for accessing partition information.
Fields§
§revision: PartitionInfoRevision
Revision of the partition info protocol.
partition_type: PartitionType
Type of partition.
Implementations§
source§impl PartitionInfo
impl PartitionInfo
sourcepub fn mbr_partition_record(&self) -> Option<&MbrPartitionRecord>
pub fn mbr_partition_record(&self) -> Option<&MbrPartitionRecord>
Get the MBR partition record. Returns None if the partition type is not MBR.
sourcepub fn gpt_partition_entry(&self) -> Option<&GptPartitionEntry>
pub fn gpt_partition_entry(&self) -> Option<&GptPartitionEntry>
Get the GPT partition entry. Returns None if the partition type is not GPT.
Trait Implementations§
impl Protocol for PartitionInfo
Auto Trait Implementations§
impl Freeze for PartitionInfo
impl RefUnwindSafe for PartitionInfo
impl Send for PartitionInfo
impl Sync for PartitionInfo
impl Unpin for PartitionInfo
impl UnwindSafe for PartitionInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more