ModelContextProtocolNotification

Trait ModelContextProtocolNotification 

Source
pub trait ModelContextProtocolNotification {
    type Params: DeserializeOwned + Serialize + Send + Sync + 'static;

    const METHOD: &'static str;
}
Expand description

One-way message in the Model Context Protocol (MCP).

Required Associated Constants§

Source

const METHOD: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ModelContextProtocolNotification for CancelledNotification

Source§

const METHOD: &'static str = "notifications/cancelled"

Source§

type Params = CancelledNotificationParams

Source§

impl ModelContextProtocolNotification for InitializedNotification

Source§

const METHOD: &'static str = "notifications/initialized"

Source§

type Params = Option<Value>

Source§

impl ModelContextProtocolNotification for LoggingMessageNotification

Source§

const METHOD: &'static str = "notifications/message"

Source§

type Params = LoggingMessageNotificationParams

Source§

impl ModelContextProtocolNotification for ProgressNotification

Source§

const METHOD: &'static str = "notifications/progress"

Source§

type Params = ProgressNotificationParams

Source§

impl ModelContextProtocolNotification for PromptListChangedNotification

Source§

const METHOD: &'static str = "notifications/prompts/list_changed"

Source§

type Params = Option<Value>

Source§

impl ModelContextProtocolNotification for ResourceListChangedNotification

Source§

const METHOD: &'static str = "notifications/resources/list_changed"

Source§

type Params = Option<Value>

Source§

impl ModelContextProtocolNotification for ResourceUpdatedNotification

Source§

const METHOD: &'static str = "notifications/resources/updated"

Source§

type Params = ResourceUpdatedNotificationParams

Source§

impl ModelContextProtocolNotification for RootsListChangedNotification

Source§

const METHOD: &'static str = "notifications/roots/list_changed"

Source§

type Params = Option<Value>

Source§

impl ModelContextProtocolNotification for ToolListChangedNotification

Source§

const METHOD: &'static str = "notifications/tools/list_changed"

Source§

type Params = Option<Value>