pub struct DefaultNotificationHandler;Expand description
Default notification handler that logs all notifications.
Trait Implementations§
Source§impl Debug for DefaultNotificationHandler
impl Debug for DefaultNotificationHandler
Source§impl Default for DefaultNotificationHandler
impl Default for DefaultNotificationHandler
Source§fn default() -> DefaultNotificationHandler
fn default() -> DefaultNotificationHandler
Returns the “default value” for a type. Read more
Source§impl NotificationHandler for DefaultNotificationHandler
impl NotificationHandler for DefaultNotificationHandler
Source§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_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
Source§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_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
Source§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_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
Source§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_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
Source§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,
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
Auto Trait Implementations§
impl Freeze for DefaultNotificationHandler
impl RefUnwindSafe for DefaultNotificationHandler
impl Send for DefaultNotificationHandler
impl Sync for DefaultNotificationHandler
impl Unpin for DefaultNotificationHandler
impl UnwindSafe for DefaultNotificationHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more