Struct uefi::proto::media::partition::PartitionInfo[][src]

#[repr(C)]
#[repr(packed)]
pub struct PartitionInfo { pub revision: PartitionInfoRevision, pub partition_type: PartitionType, // some fields omitted }
Expand description

Protocol for accessing partition information.

Fields

revision: PartitionInfoRevision

Revision of the partition info protocol.

partition_type: PartitionType

Type of partition.

Implementations

True if the partition is an EFI system partition.

Get the MBR partition record. Returns None if the partition type is not MBR.

pub fn gpt_partition_entry(&self) -> Option<&GptPartitionEntry>

Get the GPT partition entry. Returns None if the partition type is not GPT.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Unique protocol identifier.

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

Performs the conversion.

Performs the conversion.

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.