pub enum ToolResult {
Success(Vec<u8>),
Empty,
Error(DCPError),
}Expand description
Result of tool execution
Variants§
Success(Vec<u8>)
Success with binary payload
Empty
Success with no payload
Error(DCPError)
Error result
Implementations§
Source§impl ToolResult
impl ToolResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if result is success
Trait Implementations§
Source§impl Debug for ToolResult
impl Debug for ToolResult
Source§impl PartialEq for ToolResult
impl PartialEq for ToolResult
Source§fn eq(&self, other: &ToolResult) -> bool
fn eq(&self, other: &ToolResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolResult
Auto Trait Implementations§
impl Freeze for ToolResult
impl RefUnwindSafe for ToolResult
impl Send for ToolResult
impl Sync for ToolResult
impl Unpin for ToolResult
impl UnsafeUnpin for ToolResult
impl UnwindSafe for ToolResult
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