pub trait ProgressStage:
Clone
+ Send
+ Sync
+ Serialize
+ DeserializeOwned
+ 'static { }Expand description
Marker trait for tool progress stages (type-safe, like ToolName).
Progress stages are used by async tools to indicate the current phase of a long-running operation. They must be serializable for event streaming.
§Example
ⓘ
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum PixTransferStage {
Initiated,
Processing,
SentToBank,
}
impl ProgressStage for PixTransferStage {}Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.