pub trait NotificationHandler: Send + Sync {
    // Provided methods
    fn handle_progress<'life0, 'async_trait>(
        &'life0 self,
        notification: ProgressNotification,
    ) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn handle_resource_updated<'life0, 'async_trait>(
        &'life0 self,
        notification: ResourceUpdatedNotification,
    ) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn handle_resource_list_changed<'life0, 'async_trait>(
        &'life0 self,
        notification: ResourceListChangedNotification,
    ) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn handle_tool_list_changed<'life0, 'async_trait>(
        &'life0 self,
        notification: ToolListChangedNotification,
    ) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn handle_prompt_list_changed<'life0, 'async_trait>(
        &'life0 self,
        notification: PromptListChangedNotification,
    ) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}Expand description
Handler for MCP notifications from the server
Provided Methods§
Sourcefn handle_progress<'life0, 'async_trait>(
    &'life0 self,
    notification: ProgressNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn handle_progress<'life0, 'async_trait>(
    &'life0 self,
    notification: ProgressNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Handle progress notifications
Sourcefn handle_resource_updated<'life0, 'async_trait>(
    &'life0 self,
    notification: ResourceUpdatedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn handle_resource_updated<'life0, 'async_trait>(
    &'life0 self,
    notification: ResourceUpdatedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Handle resource updated notifications
Sourcefn handle_resource_list_changed<'life0, 'async_trait>(
    &'life0 self,
    notification: ResourceListChangedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn handle_resource_list_changed<'life0, 'async_trait>(
    &'life0 self,
    notification: ResourceListChangedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Handle resource list changed notifications
Sourcefn handle_tool_list_changed<'life0, 'async_trait>(
    &'life0 self,
    notification: ToolListChangedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn handle_tool_list_changed<'life0, 'async_trait>(
    &'life0 self,
    notification: ToolListChangedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Handle tool list changed notifications
Sourcefn handle_prompt_list_changed<'life0, 'async_trait>(
    &'life0 self,
    notification: PromptListChangedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn handle_prompt_list_changed<'life0, 'async_trait>(
    &'life0 self,
    notification: PromptListChangedNotification,
) -> Pin<Box<dyn Future<Output = McpResult<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Handle prompt list changed notifications