Reload and apply settings if config file externally changed

This commit is contained in:
Luke D. Jones
2024-01-24 12:19:34 +13:00
parent 84183288ec
commit b1b809834b
4 changed files with 79 additions and 30 deletions

View File

@@ -134,9 +134,12 @@ pub trait Reloadable {
}
pub trait ReloadAndNotify {
type Data: Send;
fn reload_and_notify(
&mut self,
signal_context: SignalContext<'static>,
signal_context: &SignalContext<'static>,
data: Self::Data,
) -> impl std::future::Future<Output = Result<(), RogError>> + Send;
}