pub struct McpToolCall { /* private fields */ }Expand description
One invocation of a tool. The binary view and cancellation state are only available while the tool is running.
Implementations§
Source§impl McpToolCall
impl McpToolCall
Sourcepub fn binary_view(&self) -> Option<Ref<BinaryView>>
pub fn binary_view(&self) -> Option<Ref<BinaryView>>
The binary view the MCP session targets. Never None while a BinaryView-scoped tool runs.
Sourcepub fn require_binary_view(&self) -> Result<Ref<BinaryView>, McpToolError>
pub fn require_binary_view(&self) -> Result<Ref<BinaryView>, McpToolError>
The binary view, or the no_active_binary_view error to return with ? when there is none.
pub fn is_cancelled(&self) -> bool
pub fn report_progress(&self, progress: f64, total: f64, message: &str)
Trait Implementations§
impl Send for McpToolCall
impl Sync for McpToolCall
Source§impl ToOwned for McpToolCall
impl ToOwned for McpToolCall
Source§type Owned = Ref<McpToolCall>
type Owned = Ref<McpToolCall>
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl Freeze for McpToolCall
impl RefUnwindSafe for McpToolCall
impl Unpin for McpToolCall
impl UnsafeUnpin for McpToolCall
impl UnwindSafe for McpToolCall
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