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§
Sourcefn 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,
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 configurationnew_config
- The new configuration