pub enum ToolCallOutcome {
Ok,
ToolError,
Refused,
Denied,
}Expand description
How a tools/call ended, for McpServer::after_tool_call.
Variants§
Ok
The tool ran and returned a result.
ToolError
The tool ran and returned an error (isError: true), or its
arguments didn’t match its schema.
Refused
A McpServer::before_tool_call hook refused it.
Denied
McpServer::tool_filter hides the tool from this caller, or no
such tool exists.
Trait Implementations§
Source§impl Clone for ToolCallOutcome
impl Clone for ToolCallOutcome
impl Copy for ToolCallOutcome
Source§impl Debug for ToolCallOutcome
impl Debug for ToolCallOutcome
impl Eq for ToolCallOutcome
Source§impl PartialEq for ToolCallOutcome
impl PartialEq for ToolCallOutcome
impl StructuralPartialEq for ToolCallOutcome
Auto Trait Implementations§
impl Freeze for ToolCallOutcome
impl RefUnwindSafe for ToolCallOutcome
impl Send for ToolCallOutcome
impl Sync for ToolCallOutcome
impl Unpin for ToolCallOutcome
impl UnsafeUnpin for ToolCallOutcome
impl UnwindSafe for ToolCallOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.