#[repr(transparent)]pub struct Critical(pub u32);
Expand description
Quickly check values of critical flags read during boot up
Tuple Fields§
§0: u32
Implementations§
source§impl Critical
impl Critical
pub const fn secure_boot_enable(&self) -> bool
pub fn set_secure_boot_enable(&mut self, val: bool)
pub const fn secure_debug_disable(&self) -> bool
pub fn set_secure_debug_disable(&mut self, val: bool)
pub const fn debug_disable(&self) -> bool
pub fn set_debug_disable(&mut self, val: bool)
pub const fn default_archsel(&self) -> bool
pub fn set_default_archsel(&mut self, val: bool)
pub const fn glitch_detector_enable(&self) -> bool
pub fn set_glitch_detector_enable(&mut self, val: bool)
pub const fn glitch_detector_sens(&self) -> u8
pub fn set_glitch_detector_sens(&mut self, val: u8)
pub const fn arm_disable(&self) -> bool
pub fn set_arm_disable(&mut self, val: bool)
pub const fn riscv_disable(&self) -> bool
pub fn set_riscv_disable(&mut self, val: bool)
Trait Implementations§
impl Copy for Critical
impl Eq for Critical
impl StructuralPartialEq for Critical
Auto Trait Implementations§
impl Freeze for Critical
impl RefUnwindSafe for Critical
impl Send for Critical
impl Sync for Critical
impl Unpin for Critical
impl UnwindSafe for Critical
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
)