pub enum McpServerEvent {
Progress(McpProgressNotificationParam),
Logging(McpLoggingMessageNotificationParam),
ResourceUpdated(McpResourceUpdatedNotificationParam),
ToolListChanged,
ResourceListChanged,
PromptListChanged,
Cancelled(McpCancelledNotificationParam),
}Expand description
Server-pushed events broadcast to every McpConnection::subscribe_events
receiver.
Covers the rmcp client-handler notification surface that does not feed the
catalog refresh path: progress, logging, resource updates, cancellation,
plus list-changed announcements (also delivered over the legacy
McpServerNotification channel).
Variants§
Progress(McpProgressNotificationParam)
notifications/progress from the server, scoped to a
progress_token issued in a previous request.
Logging(McpLoggingMessageNotificationParam)
notifications/message (server log emission). Drives the optional
log-level negotiation initiated by McpConnection::set_logging_level.
ResourceUpdated(McpResourceUpdatedNotificationParam)
notifications/resources/updated for a resource the client previously
subscribed to via McpConnection::subscribe_resource.
ToolListChanged
notifications/tools/list_changed.
ResourceListChanged
notifications/resources/list_changed.
PromptListChanged
notifications/prompts/list_changed.
Cancelled(McpCancelledNotificationParam)
notifications/cancelled from the server, requesting cancellation of
an in-flight client request.
Trait Implementations§
Source§impl Clone for McpServerEvent
impl Clone for McpServerEvent
Source§fn clone(&self) -> McpServerEvent
fn clone(&self) -> McpServerEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more