ConfigChangeHandler

Trait ConfigChangeHandler 

Source
pub trait ConfigChangeHandler: Send + Sync {
    // Required method
    fn handle_config_change<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        old_config: &'life1 McpServerConfig,
        new_config: &'life2 McpServerConfig,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Configuration change handler trait

Required Methods§

Source

fn handle_config_change<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, old_config: &'life1 McpServerConfig, new_config: &'life2 McpServerConfig, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Handle a configuration change

§Arguments
  • old_config - The previous configuration
  • new_config - The new configuration

Implementors§