pub trait WatchdogPlatform: Send {
// Required methods
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 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;
fn add_callback(&mut self, callback: Box<dyn WatchdogCallback>);
}
Expand description
Defines the watchdog platform interface.
Required Methods§
Sourcefn 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,
Sourcefn 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