pub enum McpServerNotification {
ToolsChanged,
ResourcesChanged,
PromptsChanged,
}Expand description
Server-originated catalog notifications observed by McpClientHandler.
Drained by McpConnection inside
McpServerManager::refresh_changed_catalogs to trigger re-discovery of
the affected capability lists. For richer push-style consumption (progress,
logging, resource updates, cancellation), subscribe via
McpConnection::subscribe_events and pattern-match on
McpServerEvent.
Variants§
ToolsChanged
Server announced notifications/tools/list_changed.
ResourcesChanged
Server announced notifications/resources/list_changed.
PromptsChanged
Server announced notifications/prompts/list_changed.
Trait Implementations§
Source§impl Clone for McpServerNotification
impl Clone for McpServerNotification
Source§fn clone(&self) -> McpServerNotification
fn clone(&self) -> McpServerNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpServerNotification
impl RefUnwindSafe for McpServerNotification
impl Send for McpServerNotification
impl Sync for McpServerNotification
impl Unpin for McpServerNotification
impl UnsafeUnpin for McpServerNotification
impl UnwindSafe for McpServerNotification
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