pub struct WatchdogVmgsFormatStore { /* private fields */ }
Expand description
Persist and restore watchdog data into a [NonVolatileStore
] using the VMGS
watchdog data format.
Implementations§
Source§impl WatchdogVmgsFormatStore
impl WatchdogVmgsFormatStore
Sourcepub async fn new(
store: Box<dyn NonVolatileStore>,
) -> Result<Self, WatchdogVmgsFormatStoreError>
pub async fn new( store: Box<dyn NonVolatileStore>, ) -> Result<Self, WatchdogVmgsFormatStoreError>
Construct a new instance of WatchdogVmgsFormatStore
, populated
with data from the provided store.
Sourcepub async fn set_boot_failure(
&mut self,
) -> Result<(), WatchdogVmgsFormatStoreError>
pub async fn set_boot_failure( &mut self, ) -> Result<(), WatchdogVmgsFormatStoreError>
Enable the boot status flag.
Sourcepub async fn read_and_clear_boot_status(
&mut self,
) -> Result<bool, WatchdogVmgsFormatStoreError>
pub async fn read_and_clear_boot_status( &mut self, ) -> Result<bool, WatchdogVmgsFormatStoreError>
Read the boot status flag, returning it’s value, while simultaneously resetting it.
Auto Trait Implementations§
impl Freeze for WatchdogVmgsFormatStore
impl !RefUnwindSafe for WatchdogVmgsFormatStore
impl Send for WatchdogVmgsFormatStore
impl Sync for WatchdogVmgsFormatStore
impl Unpin for WatchdogVmgsFormatStore
impl !UnwindSafe for WatchdogVmgsFormatStore
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