pub enum ClientRequest {
InitializeRequest(InitializeRequest),
PingRequest(PingRequest),
ListResourcesRequest(ListResourcesRequest),
ReadResourceRequest(ReadResourceRequest),
SubscribeRequest(SubscribeRequest),
UnsubscribeRequest(UnsubscribeRequest),
ListPromptsRequest(ListPromptsRequest),
GetPromptRequest(GetPromptRequest),
ListToolsRequest(ListToolsRequest),
CallToolRequest(CallToolRequest),
SetLevelRequest(SetLevelRequest),
CompleteRequest(CompleteRequest),
}
Expand description
Generated from JSON schema definition for ClientRequest
Variants§
InitializeRequest(InitializeRequest)
This request is sent from the client to the server when it first connects, asking it to begin initialization.
PingRequest(PingRequest)
A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
ListResourcesRequest(ListResourcesRequest)
Sent from the client to request a list of resources the server has.
ReadResourceRequest(ReadResourceRequest)
Sent from the client to the server, to read a specific resource URI.
SubscribeRequest(SubscribeRequest)
Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
UnsubscribeRequest(UnsubscribeRequest)
Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
ListPromptsRequest(ListPromptsRequest)
Sent from the client to request a list of prompts and prompt templates the server has.
GetPromptRequest(GetPromptRequest)
Used by the client to get a prompt provided by the server.
ListToolsRequest(ListToolsRequest)
Sent from the client to request a list of tools the server has.
CallToolRequest(CallToolRequest)
Used by the client to invoke a tool provided by the server.
SetLevelRequest(SetLevelRequest)
A request from the client to the server, to enable or adjust logging.
CompleteRequest(CompleteRequest)
A request from the client to the server, to ask for completion options.
Trait Implementations§
Source§impl Clone for ClientRequest
impl Clone for ClientRequest
Source§fn clone(&self) -> ClientRequest
fn clone(&self) -> ClientRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more