pub struct GptHeader {Show 13 fields
pub revision: u32,
pub header_size: u32,
pub header_crc32: u32,
pub header_crc_valid: bool,
pub my_lba: u64,
pub alternate_lba: u64,
pub first_usable_lba: u64,
pub last_usable_lba: u64,
pub disk_guid: Guid,
pub partition_entry_lba: u64,
pub num_partition_entries: u32,
pub partition_entry_size: u32,
pub partition_array_crc32: u32,
}Expand description
A parsed GPT header.
Fields§
§revision: u32Header revision (e.g. 0x0001_0000 for v1.0).
header_size: u32Header size in bytes (spec value: 92).
header_crc32: u32The CRC-32 stored in the header.
header_crc_valid: booltrue when the stored CRC matches a recomputed CRC over the header.
my_lba: u64LBA of this header (1 for primary; last LBA for backup).
alternate_lba: u64LBA of the other (backup/primary) header.
first_usable_lba: u64First LBA usable by partitions.
last_usable_lba: u64Last LBA usable by partitions.
disk_guid: GuidDisk GUID.
partition_entry_lba: u64LBA where the partition entry array begins.
num_partition_entries: u32Number of entries in the partition array.
partition_entry_size: u32Size of each partition entry, in bytes (spec value: 128).
partition_array_crc32: u32CRC-32 of the partition entry array.
Implementations§
Trait Implementations§
impl Eq for GptHeader
impl StructuralPartialEq for GptHeader
Auto Trait Implementations§
impl Freeze for GptHeader
impl RefUnwindSafe for GptHeader
impl Send for GptHeader
impl Sync for GptHeader
impl Unpin for GptHeader
impl UnsafeUnpin for GptHeader
impl UnwindSafe for GptHeader
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