pub struct BaseWatchdogPlatform { /* private fields */ }
Expand description
A base implementation of WatchdogPlatform
, used by OpenVMM and OpenHCL.
Implementations§
Trait Implementations§
Source§impl WatchdogPlatform for BaseWatchdogPlatform
impl WatchdogPlatform for BaseWatchdogPlatform
Source§fn on_timeout<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_timeout<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Callback fired when the timer expires.
fn read_and_clear_boot_status<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn add_callback(&mut self, callback: Box<dyn WatchdogCallback>)
fn add_callback(&mut self, callback: Box<dyn WatchdogCallback>)
Add a callback, which executes when the watchdog times out
Auto Trait Implementations§
impl Freeze for BaseWatchdogPlatform
impl !RefUnwindSafe for BaseWatchdogPlatform
impl Send for BaseWatchdogPlatform
impl Sync for BaseWatchdogPlatform
impl Unpin for BaseWatchdogPlatform
impl !UnwindSafe for BaseWatchdogPlatform
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