pub enum ServerNotification {
CancelledNotification(CancelledNotification),
ProgressNotification(ProgressNotification),
ResourceListChangedNotification(ResourceListChangedNotification),
SubscriptionsAcknowledgedNotification(SubscriptionsAcknowledgedNotification),
ResourceUpdatedNotification(ResourceUpdatedNotification),
PromptListChangedNotification(PromptListChangedNotification),
ToolListChangedNotification(ToolListChangedNotification),
LoggingMessageNotification(LoggingMessageNotification),
}Expand description
Latest MCP Protocol 2026_07_28 ServerNotification
JSON schema
{
"anyOf": [
{
"$ref": "#/$defs/CancelledNotification"
},
{
"$ref": "#/$defs/ProgressNotification"
},
{
"$ref": "#/$defs/ResourceListChangedNotification"
},
{
"$ref": "#/$defs/SubscriptionsAcknowledgedNotification"
},
{
"$ref": "#/$defs/ResourceUpdatedNotification"
},
{
"$ref": "#/$defs/PromptListChangedNotification"
},
{
"$ref": "#/$defs/ToolListChangedNotification"
},
{
"$ref": "#/$defs/LoggingMessageNotification"
}
]
}Variants§
CancelledNotification(CancelledNotification)
ProgressNotification(ProgressNotification)
ResourceListChangedNotification(ResourceListChangedNotification)
SubscriptionsAcknowledgedNotification(SubscriptionsAcknowledgedNotification)
ResourceUpdatedNotification(ResourceUpdatedNotification)
PromptListChangedNotification(PromptListChangedNotification)
ToolListChangedNotification(ToolListChangedNotification)
LoggingMessageNotification(LoggingMessageNotification)
Implementations§
Trait Implementations§
Source§impl Clone for ServerNotification
impl Clone for ServerNotification
Source§fn clone(&self) -> ServerNotification
fn clone(&self) -> ServerNotification
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 moreSource§impl Debug for ServerNotification
impl Debug for ServerNotification
Source§impl<'de> Deserialize<'de> for ServerNotification
impl<'de> Deserialize<'de> for ServerNotification
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CancelledNotification> for ServerNotification
impl From<CancelledNotification> for ServerNotification
Source§fn from(value: CancelledNotification) -> Self
fn from(value: CancelledNotification) -> Self
Converts to this type from the input type.
Source§impl From<LoggingMessageNotification> for ServerNotification
impl From<LoggingMessageNotification> for ServerNotification
Source§fn from(value: LoggingMessageNotification) -> Self
fn from(value: LoggingMessageNotification) -> Self
Converts to this type from the input type.
Source§impl From<ProgressNotification> for ServerNotification
impl From<ProgressNotification> for ServerNotification
Source§fn from(value: ProgressNotification) -> Self
fn from(value: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl From<PromptListChangedNotification> for ServerNotification
impl From<PromptListChangedNotification> for ServerNotification
Source§fn from(value: PromptListChangedNotification) -> Self
fn from(value: PromptListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceListChangedNotification> for ServerNotification
impl From<ResourceListChangedNotification> for ServerNotification
Source§fn from(value: ResourceListChangedNotification) -> Self
fn from(value: ResourceListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUpdatedNotification> for ServerNotification
impl From<ResourceUpdatedNotification> for ServerNotification
Source§fn from(value: ResourceUpdatedNotification) -> Self
fn from(value: ResourceUpdatedNotification) -> Self
Converts to this type from the input type.
Source§impl From<SubscriptionsAcknowledgedNotification> for ServerNotification
impl From<SubscriptionsAcknowledgedNotification> for ServerNotification
Source§fn from(value: SubscriptionsAcknowledgedNotification) -> Self
fn from(value: SubscriptionsAcknowledgedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for ServerNotification
impl From<ToolListChangedNotification> for ServerNotification
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerNotification
impl RefUnwindSafe for ServerNotification
impl Send for ServerNotification
impl Sync for ServerNotification
impl Unpin for ServerNotification
impl UnsafeUnpin for ServerNotification
impl UnwindSafe for ServerNotification
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