#[non_exhaustive]pub enum BootAction {
BootEfi,
BootTftp,
Reboot,
Shutdown,
ResetToFirmware,
}
Expand description
Actions that decide which boot loader to use.
This also handles the special cases of rebooting, shutting down, and resetting to firmware.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BootEfi
Boot using the EFI boot loader.
BootTftp
Boot using the TFTP boot loader.
Reboot
Reboot the system.
Shutdown
Shut down the system.
ResetToFirmware
Reboot the system into firmware setup.
Trait Implementations§
Source§impl Clone for BootAction
impl Clone for BootAction
Source§fn clone(&self) -> BootAction
fn clone(&self) -> BootAction
Returns a duplicate of the value. Read more
1.0.0 · 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 BootAction
impl Debug for BootAction
Source§impl Default for BootAction
impl Default for BootAction
Source§fn default() -> BootAction
fn default() -> BootAction
Returns the “default value” for a type. Read more
Source§impl PartialEq for BootAction
impl PartialEq for BootAction
impl Copy for BootAction
impl Eq for BootAction
impl StructuralPartialEq for BootAction
Auto Trait Implementations§
impl Freeze for BootAction
impl RefUnwindSafe for BootAction
impl Send for BootAction
impl Sync for BootAction
impl Unpin for BootAction
impl UnwindSafe for BootAction
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