Skip to main content

ConfigChangeNotifier

Trait ConfigChangeNotifier 

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

Source

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.

Source

fn subscribe<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ConfigNotification>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Subscribes to future reload notifications.

Implementors§