Struct gpt::GptDisk

source ·
pub struct GptDisk { /* private fields */ }
Expand description

A file-backed GPT disk.

Implementations

Retrieve primary header, if any.

Retrieve backup header, if any.

Retrieve partition entries.

Retrieve disk UUID.

Retrieve disk logical block size.

Update disk UUID.

If no UUID is specified, a new random one is generated. No changes are recorded to disk until write() is called.

Update current partition table.

No changes are recorded to disk until write() is called.

Persist state to disk, consuming this disk object.

This is a destructive action, as it overwrite headers and partitions entries on disk. All writes are flushed to disk before returning the underlying File object.

Trait Implementations

Formats the value using the given formatter. Read more

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 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.