pub enum McpNotification {
ToolsListChanged,
ResourcesListChanged,
PromptsListChanged,
Progress {
progress_token: String,
progress: f64,
total: Option<f64>,
},
Log {
level: String,
logger: Option<String>,
data: Value,
},
Unknown {
method: String,
params: Option<Value>,
},
}Expand description
MCP notification types
Variants§
Implementations§
Source§impl McpNotification
impl McpNotification
pub fn from_json_rpc(notification: &JsonRpcNotification) -> Self
Trait Implementations§
Source§impl Clone for McpNotification
impl Clone for McpNotification
Source§fn clone(&self) -> McpNotification
fn clone(&self) -> McpNotification
Returns a duplicate of the value. Read more
1.0.0 · 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 McpNotification
impl RefUnwindSafe for McpNotification
impl Send for McpNotification
impl Sync for McpNotification
impl Unpin for McpNotification
impl UnsafeUnpin for McpNotification
impl UnwindSafe for McpNotification
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