pub trait McpToolCallHost: Sync {
// Required method
fn binary_view(&self) -> Option<Ref<BinaryView>>;
// Provided methods
fn is_cancelled(&self) -> bool { ... }
fn report_progress(&self, _progress: f64, _total: f64, _message: &str) { ... }
}Expand description
The request state an MCP server supplies for one invocation of a tool.
Required Methods§
fn binary_view(&self) -> Option<Ref<BinaryView>>
Provided Methods§
fn is_cancelled(&self) -> bool
fn report_progress(&self, _progress: f64, _total: f64, _message: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".