#[repr(C)]pub enum BootMode {
Legacy = 0,
Uefi = 1,
}Expand description
This is the boot mode, only support 2 modes, which are legacy(BIOS) and UEFI.
Variants§
Legacy = 0
The Legacy boot mode, also called BIOS boot mode.
This mode is for older machine, and we needs implement lots of things in it.
Uefi = 1
The UEFI boot mode, which is the newer mode. Lots of new machines uses it.
Also, some machine only support it (such as mine awa).
Trait Implementations§
impl Copy for BootMode
impl Eq for BootMode
impl StructuralPartialEq for BootMode
Auto Trait Implementations§
impl Freeze for BootMode
impl RefUnwindSafe for BootMode
impl Send for BootMode
impl Sync for BootMode
impl Unpin for BootMode
impl UnsafeUnpin for BootMode
impl UnwindSafe for BootMode
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