[][src]Struct disk_initializer::gpt::GPTPartitionEntry

#[repr(C)]pub struct GPTPartitionEntry {
    pub partition_type: RawUUID,
    pub unique_id: RawUUID,
    pub first_lba: u64,
    pub last_lba: u64,
    pub attribute: u64,
    pub partition_name: [u16; 36],
}

A GPT partition entry.

Fields

partition_type: RawUUID

Partition type GUID.

unique_id: RawUUID

Partition GUID.

first_lba: u64

First LBA of the partition.

last_lba: u64

Last LBA of the partition (inclusive).

attribute: u64

Attribute flags.

partition_name: [u16; 36]

Partition name in UTF16LE.

Implementations

impl GPTPartitionEntry[src]

pub fn set_partition_type(&mut self, uuid: Uuid)[src]

Set the partition type GUID.

pub fn set_unique_id(&mut self, uuid: Uuid)[src]

Set the unique partition GUID.

pub fn set_name(&mut self, name: &str)[src]

Set the name of the partition.

pub fn from_bytes(bytes: [u8; 128]) -> Self[src]

Create a GPTPartitionEntry from bytes.

pub fn read(&mut self, bytes: [u8; 128])[src]

Read the content of a raw array into a GPTPartitionEntry.

pub fn write(&self) -> [u8; 128][src]

Conver the structure data to a raw array.

Trait Implementations

impl Clone for GPTPartitionEntry[src]

impl Copy for GPTPartitionEntry[src]

impl Debug for GPTPartitionEntry[src]

impl Default for GPTPartitionEntry[src]

Auto Trait Implementations

impl RefUnwindSafe for GPTPartitionEntry

impl Send for GPTPartitionEntry

impl Sync for GPTPartitionEntry

impl Unpin for GPTPartitionEntry

impl UnwindSafe for GPTPartitionEntry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.