pub enum McpMethod {
Initialize,
ToolsCall {
name: String,
arguments: Value,
},
ResourcesRead {
uri: String,
},
ResourcesSubscribe {
uri: String,
},
ResourcesUnsubscribe {
uri: String,
},
PromptsGet {
name: String,
arguments: Value,
},
LoggingSetLevel {
level: String,
},
}Expand description
Typed dispatch for MCP requests that may surface auth or invocation
errors. Each peer call constructs the matching variant;
[auth_request_from_signal] converts to a public AuthOperation
(typed for the four common cases, AuthOperation::McpOther for the
long tail). The same value is also exposed to McpErrorResponder
implementations via McpErrorContext::method.
Variants§
Initialize
initialize — the MCP handshake.
ToolsCall
tools/call.
Fields
ResourcesRead
resources/read.
ResourcesSubscribe
resources/subscribe.
ResourcesUnsubscribe
resources/unsubscribe.
PromptsGet
prompts/get.
LoggingSetLevel
logging/setLevel.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpMethod
impl RefUnwindSafe for McpMethod
impl Send for McpMethod
impl Sync for McpMethod
impl Unpin for McpMethod
impl UnsafeUnpin for McpMethod
impl UnwindSafe for McpMethod
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