pub struct GptDisk { /* private fields */ }
Expand description
A file-backed GPT disk.
Implementations
sourceimpl GptDisk
impl GptDisk
sourcepub fn primary_header(&self) -> Option<&Header>
pub fn primary_header(&self) -> Option<&Header>
Retrieve primary header, if any.
sourcepub fn backup_header(&self) -> Option<&Header>
pub fn backup_header(&self) -> Option<&Header>
Retrieve backup header, if any.
sourcepub fn partitions(&self) -> &[Partition]
pub fn partitions(&self) -> &[Partition]
Retrieve partition entries.
sourcepub fn logical_block_size(&self) -> &LogicalBlockSize
pub fn logical_block_size(&self) -> &LogicalBlockSize
Retrieve disk logical block size.
sourcepub fn update_guid(&mut self, uuid: Option<Uuid>) -> Result<&Self>
pub fn update_guid(&mut self, uuid: Option<Uuid>) -> Result<&Self>
Update disk UUID.
If no UUID is specified, a new random one is generated.
No changes are recorded to disk until write()
is called.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GptDisk
impl Send for GptDisk
impl Sync for GptDisk
impl Unpin for GptDisk
impl UnwindSafe for GptDisk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more