pub trait ConfigChangeNotifier: Send + Sync {
// Required methods
fn publish_reload<'life0, 'async_trait>(
&'life0 self,
message: ConfigReloadMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ConfigNotification>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Transport used to publish and subscribe to reload notifications.
Required Methods§
Sourcefn publish_reload<'life0, 'async_trait>(
&'life0 self,
message: ConfigReloadMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish_reload<'life0, 'async_trait>(
&'life0 self,
message: ConfigReloadMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publishes a reload notification.