Struct uefi_specs::hyperv::boot_bios_log::BootDeviceStatus
source · #[repr(transparent)]pub struct BootDeviceStatus(pub u32);
Expand description
Device failure reason codes
Status codes are made up of a group ID in the high word and a status code in the low word
If items are added to this enum the UEFI string mapping function PlatformConsoleDeviceStatusString and the corresponding string table in PlatformBdsString.uni must be updated
reSearch query: BOOT_DEVICE_STATUS
Tuple Fields§
§0: u32
Implementations§
source§impl BootDeviceStatus
impl BootDeviceStatus
pub const BOOT_PENDING: BootDeviceStatus = _
pub const BOOT_DEVICE_NO_FILESYSTEM: BootDeviceStatus = _
pub const BOOT_DEVICE_NO_LOADER: BootDeviceStatus = _
pub const BOOT_DEVICE_INCOMPATIBLE_LOADER: BootDeviceStatus = _
pub const BOOT_DEVICE_RETURNED_FAILURE: BootDeviceStatus = _
pub const BOOT_DEVICE_OS_NOT_LOADED: BootDeviceStatus = _
pub const BOOT_DEVICE_OS_LOADED: BootDeviceStatus = _
pub const BOOT_DEVICE_NO_DEVICES: BootDeviceStatus = _
pub const BOOT_DEVICE_LOAD_ERROR: BootDeviceStatus = _
pub const SECURE_BOOT_FAILED: BootDeviceStatus = _
pub const SECURE_BOOT_POLICY_DENIED: BootDeviceStatus = _
pub const SECURE_BOOT_HASH_DENIED: BootDeviceStatus = _
pub const SECURE_BOOT_CERT_DENIED: BootDeviceStatus = _
pub const SECURE_BOOT_INVALID_IMAGE: BootDeviceStatus = _
pub const SECURE_BOOT_UNSIGNED_HAS_NOT_IN_DB: BootDeviceStatus = _
pub const SECURE_BOOT_SIGNED_HASH_NOT_FOUND: BootDeviceStatus = _
pub const SECURE_BOOT_NEITHER_CERT_NOR_HASH_IN_DB: BootDeviceStatus = _
pub const NETWORK_BOOT_MEDIA_DISCONNECTED: BootDeviceStatus = _
pub const NETWORK_BOOT_DHCP_FAILED: BootDeviceStatus = _
pub const NETWORK_BOOT_NO_RESPONSE: BootDeviceStatus = _
pub const NETWORK_BOOT_BUFFER_TOO_SMALL: BootDeviceStatus = _
pub const NETWORK_BOOT_DEVICE_ERROR: BootDeviceStatus = _
pub const NETWORK_BOOT_NO_RESOURCES: BootDeviceStatus = _
pub const NETWORK_BOOT_SERVER_TIMEOUT: BootDeviceStatus = _
pub const NETWORK_BOOT_CANCELLED: BootDeviceStatus = _
pub const NETWORK_BOOT_ICMP_ERROR: BootDeviceStatus = _
pub const NETWORK_BOOT_TFTP_ERROR: BootDeviceStatus = _
pub const NETWORK_BOOT_NO_BOOT_FILE: BootDeviceStatus = _
pub const NETWORK_BOOT_UNEXPECTED_FAILURE: BootDeviceStatus = _
source§impl BootDeviceStatus
impl BootDeviceStatus
pub fn get_boot_device_status_group(&self) -> u32
Trait Implementations§
source§impl AsBytes for BootDeviceStatuswhere
u32: AsBytes,
impl AsBytes for BootDeviceStatuswhere
u32: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for BootDeviceStatus
impl Clone for BootDeviceStatus
source§fn clone(&self) -> BootDeviceStatus
fn clone(&self) -> BootDeviceStatus
Returns a copy 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 BootDeviceStatus
impl Debug for BootDeviceStatus
source§impl Default for BootDeviceStatus
impl Default for BootDeviceStatus
source§impl FromBytes for BootDeviceStatuswhere
u32: FromBytes,
impl FromBytes for BootDeviceStatuswhere
u32: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for BootDeviceStatuswhere
u32: FromZeroes,
impl FromZeroes for BootDeviceStatuswhere
u32: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moresource§impl Hash for BootDeviceStatus
impl Hash for BootDeviceStatus
source§impl Ord for BootDeviceStatus
impl Ord for BootDeviceStatus
source§fn cmp(&self, other: &BootDeviceStatus) -> Ordering
fn cmp(&self, other: &BootDeviceStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BootDeviceStatus
impl PartialEq for BootDeviceStatus
source§impl PartialOrd for BootDeviceStatus
impl PartialOrd for BootDeviceStatus
impl Copy for BootDeviceStatus
impl Eq for BootDeviceStatus
impl StructuralPartialEq for BootDeviceStatus
Auto Trait Implementations§
impl Freeze for BootDeviceStatus
impl RefUnwindSafe for BootDeviceStatus
impl Send for BootDeviceStatus
impl Sync for BootDeviceStatus
impl Unpin for BootDeviceStatus
impl UnwindSafe for BootDeviceStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)