pub struct SubscriptionsListenResult {
pub meta: SubscriptionsListenResultMetaObject,
pub result_type: String,
}Expand description
Latest MCP Protocol 2026_07_28 The response to a {@link SubscriptionsListenRequestsubscriptions/listen} request, signalling that the subscription has ended gracefully (for example, during server shutdown). Because the listen stream is long-lived, this result is sent only when the server tears the subscription down; an abrupt transport close carries no response. The result body is otherwise empty.
JSON schema
{
"description": "The response to a {@link SubscriptionsListenRequestsubscriptions/listen}\nrequest, signalling that the subscription has ended gracefully (for example,\nduring server shutdown). Because the listen stream is long-lived, this result\nis sent only when the server tears the subscription down; an abrupt transport\nclose carries no response. The result body is otherwise empty.",
"type": "object",
"required": [
"_meta",
"resultType"
],
"properties": {
"_meta": {
"$ref": "#/$defs/SubscriptionsListenResultMetaObject"
},
"resultType": {
"description": "Indicates the type of the result, which allows the client to determine\nhow to parse the result object.\n\nServers implementing this protocol version MUST include this field.\nFor backward compatibility, when a client receives a result from a\nserver implementing an earlier protocol version (which does not include\nresultType), the client MUST treat the absent field as \"complete\".",
"type": "string"
}
}
}Fields§
§meta: SubscriptionsListenResultMetaObject§result_type: StringIndicates the type of the result, which allows the client to determine how to parse the result object. Servers implementing this protocol version MUST include this field. For backward compatibility, when a client receives a result from a server implementing an earlier protocol version (which does not include resultType), the client MUST treat the absent field as “complete”.
Trait Implementations§
Source§impl Clone for SubscriptionsListenResult
impl Clone for SubscriptionsListenResult
Source§fn clone(&self) -> SubscriptionsListenResult
fn clone(&self) -> SubscriptionsListenResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more