Trait WatchdogPlatform

Source
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§

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,

Callback fired when the timer expires.

Source

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>)

Add a callback, which executes when the watchdog times out

Implementors§