bws_web_server/server/
reload_trait.rs

1use async_trait::async_trait;
2
3/// Trait for services that can reload their configuration
4#[async_trait]
5pub trait ConfigReloadable {
6    async fn reload_config_from_path(&self)
7        -> Result<(), Box<dyn std::error::Error + Send + Sync>>;
8    async fn get_config_path(&self) -> Option<String>;
9}