pub struct BootGuard<'a>(/* private fields */);Expand description
Crash-loop counter in a separate retained slot. An invalid slot counts as zero.
Implementations§
Source§impl<'a> BootGuard<'a>
impl<'a> BootGuard<'a>
pub fn new(storage: &'a mut [u8; 16]) -> Self
pub fn consecutive_crashes(&self) -> u32
pub fn record_crash(&mut self) -> u32
pub fn mark_stable(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for BootGuard<'a>
impl<'a> RefUnwindSafe for BootGuard<'a>
impl<'a> Send for BootGuard<'a>
impl<'a> Sync for BootGuard<'a>
impl<'a> Unpin for BootGuard<'a>
impl<'a> UnsafeUnpin for BootGuard<'a>
impl<'a> !UnwindSafe for BootGuard<'a>
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