Reload asusd.ron if changed

This commit is contained in:
Luke D. Jones
2024-01-22 21:54:19 +13:00
parent 006fb632c4
commit 86cbef83b6
9 changed files with 94 additions and 21 deletions

View File

@@ -132,6 +132,14 @@ pub fn print_board_info() {
pub trait Reloadable {
fn reload(&mut self) -> impl std::future::Future<Output = Result<(), RogError>> + Send;
}
pub trait ReloadAndNotify {
fn reload_and_notify(
&mut self,
signal_context: SignalContext<'static>,
) -> impl std::future::Future<Output = Result<(), RogError>> + Send;
}
pub trait ZbusRun {
fn add_to_server(self, server: &mut Connection)
-> impl std::future::Future<Output = ()> + Send;