pub enum PartitionScheme {
None,
Mbr,
Gpt,
Hybrid,
}Available on crate features
sync and write only.Expand description
The partition scheme to use for hybrid boot.
MBR partition entries hold 32-bit counts of 512-byte sectors, so Mbr and
Hybrid layouts are limited to 2 TiB. The ISO 9660 volume space size is a
32-bit count of logical sectors, so every scheme is limited to 2^32 logical
sectors. A larger image fails to write with InvalidInput.
Variants§
None
No partition table (CD/DVD only, not USB bootable).
Mbr
MBR partition table only (for BIOS USB boot).
Gpt
GPT partition table only (for UEFI boot).
Hybrid
Hybrid MBR + GPT (for dual BIOS/UEFI boot). Creates a protective MBR with GPT, plus MBR entries mirroring key partitions.
Trait Implementations§
Source§impl Clone for PartitionScheme
impl Clone for PartitionScheme
impl Copy for PartitionScheme
Source§impl Debug for PartitionScheme
impl Debug for PartitionScheme
Source§impl Default for PartitionScheme
impl Default for PartitionScheme
impl Eq for PartitionScheme
Source§impl PartialEq for PartitionScheme
impl PartialEq for PartitionScheme
impl StructuralPartialEq for PartitionScheme
Auto Trait Implementations§
impl Freeze for PartitionScheme
impl RefUnwindSafe for PartitionScheme
impl Send for PartitionScheme
impl Sync for PartitionScheme
impl Unpin for PartitionScheme
impl UnsafeUnpin for PartitionScheme
impl UnwindSafe for PartitionScheme
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