pub enum ToolStatus<S: ProgressStage> {
Progress {
stage: S,
message: String,
data: Option<Value>,
},
Completed(ToolResult),
Failed(ToolResult),
}Expand description
Status update from an async tool operation.
Variants§
Progress
Operation is making progress
Completed(ToolResult)
Operation completed successfully
Failed(ToolResult)
Operation failed
Trait Implementations§
Source§impl<S: Clone + ProgressStage> Clone for ToolStatus<S>
impl<S: Clone + ProgressStage> Clone for ToolStatus<S>
Source§fn clone(&self) -> ToolStatus<S>
fn clone(&self) -> ToolStatus<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug + ProgressStage> Debug for ToolStatus<S>
impl<S: Debug + ProgressStage> Debug for ToolStatus<S>
Source§impl<S: ProgressStage> From<ToolStatus<S>> for ErasedToolStatus
impl<S: ProgressStage> From<ToolStatus<S>> for ErasedToolStatus
Source§fn from(status: ToolStatus<S>) -> Self
fn from(status: ToolStatus<S>) -> Self
Converts to this type from the input type.
Source§impl<S> Serialize for ToolStatus<S>where
S: Serialize + ProgressStage,
impl<S> Serialize for ToolStatus<S>where
S: Serialize + ProgressStage,
Auto Trait Implementations§
impl<S> Freeze for ToolStatus<S>where
S: Freeze,
impl<S> RefUnwindSafe for ToolStatus<S>where
S: RefUnwindSafe,
impl<S> Send for ToolStatus<S>
impl<S> Sync for ToolStatus<S>
impl<S> Unpin for ToolStatus<S>where
S: Unpin,
impl<S> UnwindSafe for ToolStatus<S>where
S: UnwindSafe,
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