pub trait JsonRpcNotification: JsonRpcMessage { }Expand description
A struct that represents a notification (JSON-RPC message that does not expect a response).
§Derive Macro
Use #[derive(JsonRpcNotification)] to automatically implement both JsonRpcMessage and JsonRpcNotification:
ⓘ
use agent_client_protocol::JsonRpcNotification;
use serde::{Serialize, Deserialize};
#[derive(Debug, Clone, Serialize, Deserialize, JsonRpcNotification)]
#[notification(method = "_ping")]
struct PingNotification {
timestamp: u64,
}Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl JsonRpcNotification for agent_client_protocol::v1::schema::AgentNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::AgentNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for agent_client_protocol::v1::schema::AuthStatusUpdateNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::AuthStatusUpdateNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for CancelNotification
impl JsonRpcNotification for agent_client_protocol::v1::schema::CancelRequestNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::CancelRequestNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for CancelSessionNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for agent_client_protocol::v1::schema::ClientNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::ClientNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for agent_client_protocol::v1::schema::CompleteElicitationNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::CompleteElicitationNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for agent_client_protocol::v1::schema::MessageMcpNotification
Available on crate feature
unstable_mcp_over_acp only.impl JsonRpcNotification for agent_client_protocol::v2::schema::MessageMcpNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for agent_client_protocol::v1::schema::ProtocolLevelNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::ProtocolLevelNotification
Available on crate feature
unstable_protocol_v2 only.impl JsonRpcNotification for agent_client_protocol::v1::schema::ProxyNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::ProxyNotification
impl JsonRpcNotification for agent_client_protocol::v1::schema::ProxySuccessorNotification
impl JsonRpcNotification for agent_client_protocol::v2::schema::ProxySuccessorNotification
impl JsonRpcNotification for SessionNotification
impl JsonRpcNotification for UntypedMessage
impl JsonRpcNotification for UpdateSessionNotification
Available on crate feature
unstable_protocol_v2 only.