pub enum StreamEvent<S: GraphState> {
NodeStart {
node_id: String,
state: S,
},
NodeEnd {
node_id: String,
state: S,
command: Command,
},
End {
final_state: S,
},
Error {
node_id: Option<String>,
error: String,
},
}Expand description
Stream event from graph execution
Variants§
NodeStart
A node started executing
NodeEnd
A node finished executing
End
Graph execution completed
Fields
§
final_state: SError
Error occurred
Trait Implementations§
Source§impl<S: Clone + GraphState> Clone for StreamEvent<S>
impl<S: Clone + GraphState> Clone for StreamEvent<S>
Source§fn clone(&self) -> StreamEvent<S>
fn clone(&self) -> StreamEvent<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 moreAuto Trait Implementations§
impl<S> Freeze for StreamEvent<S>where
S: Freeze,
impl<S> RefUnwindSafe for StreamEvent<S>where
S: RefUnwindSafe,
impl<S> Send for StreamEvent<S>
impl<S> Sync for StreamEvent<S>
impl<S> Unpin for StreamEvent<S>where
S: Unpin,
impl<S> UnsafeUnpin for StreamEvent<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StreamEvent<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