-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Protocol updates * Formatting * More formatting
- Loading branch information
Showing
6 changed files
with
140 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! Auxiliary types for the [firmware type request | ||
//! ](crate::request::FirmwareTypeRequest). | ||
/// A firmware type. | ||
#[repr(transparent)] | ||
#[derive(PartialEq, Eq, Clone, Copy)] | ||
pub struct FirmwareType(u64); | ||
impl FirmwareType { | ||
/// The firmware type is x86 BIOS. | ||
pub const X86_BIOS: Self = Self(0); | ||
/// The firmware type is 32-bit UEFI. | ||
pub const UEFI_32: Self = Self(1); | ||
/// The firmware type is 64-bit UEFI. | ||
pub const UEFI_64: Self = Self(2); | ||
} | ||
impl From<u64> for FirmwareType { | ||
fn from(value: u64) -> Self { | ||
Self(value) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters