pub enum GraphEvent {
Show 14 variants
NodeAdded {
id: NodeId,
spec: NodeSpec,
ts: u64,
},
NodeReady {
id: NodeId,
ts: u64,
},
NodeStarted {
id: NodeId,
ts: u64,
},
NodeCompleted {
id: NodeId,
result: Value,
ts: u64,
},
NodeFailed {
id: NodeId,
error: String,
ts: u64,
},
NodeAbandoned {
id: NodeId,
ts: u64,
},
EdgeAdded {
from: NodeId,
to: NodeId,
ts: u64,
},
EdgeRemoved {
from: NodeId,
to: NodeId,
ts: u64,
},
MutationApplied {
mutation: GraphMutation,
ts: u64,
},
MutationRejected {
reason: String,
ts: u64,
},
SnapshotTaken {
snapshot: GraphSnapshot,
ts: u64,
},
RunStarted {
run_id: RunId,
ts: u64,
},
RunCompleted {
run_id: RunId,
ts: u64,
},
RunFailed {
run_id: RunId,
error: String,
ts: u64,
},
}Expand description
All events that can occur in a graph’s lifecycle
Variants§
NodeAdded
NodeReady
NodeStarted
NodeCompleted
NodeFailed
NodeAbandoned
EdgeAdded
EdgeRemoved
MutationApplied
MutationRejected
SnapshotTaken
RunStarted
RunCompleted
RunFailed
Implementations§
Trait Implementations§
Source§impl Clone for GraphEvent
impl Clone for GraphEvent
Source§fn clone(&self) -> GraphEvent
fn clone(&self) -> GraphEvent
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 Debug for GraphEvent
impl Debug for GraphEvent
Source§impl<'de> Deserialize<'de> for GraphEvent
impl<'de> Deserialize<'de> for GraphEvent
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 GraphEvent
impl RefUnwindSafe for GraphEvent
impl Send for GraphEvent
impl Sync for GraphEvent
impl Unpin for GraphEvent
impl UnsafeUnpin for GraphEvent
impl UnwindSafe for GraphEvent
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