pub trait DevMcpExt:
Sized
+ Application
+ Send
+ Sync
+ 'static {
// Provided methods
fn dev_mcp(self) -> DevMcp<Self> { ... }
fn dev_mcp_with(self, tools: DevTools) -> DevMcp<Self> { ... }
}Available on non-WebAssembly only.
Expand description
.dev_mcp() on every Application — AppWithState, App,
WithMiddleware, AsyncAppWithState and the rest.
Provided Methods§
Sourcefn dev_mcp(self) -> DevMcp<Self>
fn dev_mcp(self) -> DevMcp<Self>
The dev MCP endpoint with the default DevTools, in front of
this app — or this app alone outside development without a token.
Sourcefn dev_mcp_with(self, tools: DevTools) -> DevMcp<Self>
fn dev_mcp_with(self, tools: DevTools) -> DevMcp<Self>
The same with the tools and gating tools describes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".