#[repr(C, align(1))]
pub struct GPTHeader {
Show 14 fields pub signature: [u8; 8], pub revision: u32le, pub header_size_le: u32le, pub header_crc32: u32le, pub reserved: u32le, pub current_lba: u64le, pub backup_lba: u64le, pub first_usable: u64le, pub last_usable: u64le, pub disk_guid: Uuid, pub part_start_lba: u64le, pub num_parts: u32le, pub part_size: u32le, pub part_table_crc32: u32le,
}

Fields

signature: [u8; 8]

GPT header magic signature, hardcoded to “EFI PART”.

revision: u32le

00 00 01 00

header_size_le: u32le

little endian

header_crc32: u32le

CRC32 of the header with crc32 section zeroed

reserved: u32le

must be 0

current_lba: u64le

For main header, 1

backup_lba: u64le

LBA for backup header

first_usable: u64le

First usable LBA for partitions (primary table last LBA + 1)

last_usable: u64le

Last usable LBA (secondary partition table first LBA - 1)

disk_guid: Uuid

UUID of the disk

part_start_lba: u64le

Starting LBA of partition entries

num_parts: u32le

Number of partition entries

part_size: u32le

Size of a partition entry, usually 128

part_table_crc32: u32le

CRC32 of the partition table

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.