pub enum BootCodeId {
WindowsVista,
Windows7Plus,
GrubLegacy,
Grub2,
Syslinux,
AllZeros,
AllOnes,
Unknown,
}Expand description
Identity of the boot code in the first 446 bytes of the MBR.
Variants§
WindowsVista
Windows Vista / Server 2008 MBR boot code.
Windows7Plus
Windows 7 / Server 2008 R2 and later MBR boot code.
GrubLegacy
GRUB Legacy (stage1).
Grub2
GRUB 2 boot code.
Syslinux
Syslinux / EXTLINUX MBR.
AllZeros
All 446 bytes are zero — likely wiped or freshly zeroed.
AllOnes
All 446 bytes are 0xFF — factory-erased flash or deliberate wipe.
Unknown
Unrecognised boot code.
Trait Implementations§
Source§impl Clone for BootCodeId
impl Clone for BootCodeId
Source§fn clone(&self) -> BootCodeId
fn clone(&self) -> BootCodeId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootCodeId
impl Debug for BootCodeId
Source§impl PartialEq for BootCodeId
impl PartialEq for BootCodeId
Source§fn eq(&self, other: &BootCodeId) -> bool
fn eq(&self, other: &BootCodeId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BootCodeId
impl Eq for BootCodeId
impl StructuralPartialEq for BootCodeId
Auto Trait Implementations§
impl Freeze for BootCodeId
impl RefUnwindSafe for BootCodeId
impl Send for BootCodeId
impl Sync for BootCodeId
impl Unpin for BootCodeId
impl UnsafeUnpin for BootCodeId
impl UnwindSafe for BootCodeId
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