pub struct BootInfo {
pub diagnostic_partition: PartitionIndex,
pub boot_type: BootType,
pub chained: bool,
pub partition: i8,
pub tbyb_update_info: u8,
pub boot_diagnostic: u32,
pub boot_params: [u32; 2],
}Expand description
Boot diagnostic info as described in 5.4 under the get_sys_info function
Fields§
§diagnostic_partition: PartitionIndexInformation about which partition is being diagnosed
boot_type: BootTypeType of boot that occurred
chained: boolWhether it was a chained boot
partition: i8What partition the boot came from
tbyb_update_info: u8Try Before You Buy info
boot_diagnostic: u32boot diagnostic flags for section A and section B
boot_params: [u32; 2]Boot parameters 0 and 1
Implementations§
Source§impl BootInfo
impl BootInfo
Sourcepub fn check_section_a_flag(&self, flag: BootDiagnosticFlags) -> bool
pub fn check_section_a_flag(&self, flag: BootDiagnosticFlags) -> bool
Check if the diagnostic flag in section A (the lower word) is set
Sourcepub fn check_section_b_flag(&self, flag: BootDiagnosticFlags) -> bool
pub fn check_section_b_flag(&self, flag: BootDiagnosticFlags) -> bool
Check if the diagnostic flag in section B (the upper word) is set
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BootInfo
impl RefUnwindSafe for BootInfo
impl Send for BootInfo
impl Sync for BootInfo
impl Unpin for BootInfo
impl UnwindSafe for BootInfo
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more