pub enum WorkerEvent {
Log {
message: String,
node: NodeId,
timestamp_ms: u64,
},
Progress {
value: u8,
node: NodeId,
timestamp_ms: u64,
},
AiThinking {
content: String,
node: NodeId,
timestamp_ms: u64,
},
ToolCall {
tool: String,
args: Option<Value>,
node: NodeId,
timestamp_ms: u64,
},
NodeStart {
node: NodeId,
kind: NodeKind,
timestamp_ms: u64,
},
NodeDone {
node: NodeId,
duration_ms: u64,
timestamp_ms: u64,
},
NodeFailed {
node: NodeId,
error: String,
timestamp_ms: u64,
},
Result {
data: Value,
timestamp_ms: u64,
},
GraphDone {
graph_id: GraphId,
timestamp_ms: u64,
},
}Expand description
Domain events emitted during worker execution (SSE + replay).
Variants§
Implementations§
Source§impl WorkerEvent
impl WorkerEvent
Trait Implementations§
Source§impl Clone for WorkerEvent
impl Clone for WorkerEvent
Source§fn clone(&self) -> WorkerEvent
fn clone(&self) -> WorkerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerEvent
impl Debug for WorkerEvent
Source§impl<'de> Deserialize<'de> for WorkerEvent
impl<'de> Deserialize<'de> for WorkerEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkerEvent
impl RefUnwindSafe for WorkerEvent
impl Send for WorkerEvent
impl Sync for WorkerEvent
impl Unpin for WorkerEvent
impl UnsafeUnpin for WorkerEvent
impl UnwindSafe for WorkerEvent
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