pub enum TopologyEvent {
NodeAdded(NodeSnapshot),
NodeRemoved(NodeId),
LinkAdded(SnapshotEdge),
LinkRemoved(LinkId),
GraphCompiled,
GraphReset,
}Available on crate feature
topology only.Expand description
An observable change to a graph’s topology.
Emitted on the non-RT mutation path (e.g. from add_node / link) and
delivered to subscribers registered via
Graph::subscribe_topology. The RT
Graph::process_cycle path never emits
events.
Variants§
NodeAdded(NodeSnapshot)
A node was added; carries its structural snapshot.
NodeRemoved(NodeId)
A node was removed; carries its id.
LinkAdded(SnapshotEdge)
A link was added; carries the edge.
LinkRemoved(LinkId)
A link was removed; carries its id.
GraphCompiled
The graph finished compiling (topological sort + scratch allocation).
GraphReset
The graph was reset to an uncompiled state.
Trait Implementations§
Source§impl Clone for TopologyEvent
impl Clone for TopologyEvent
Source§fn clone(&self) -> TopologyEvent
fn clone(&self) -> TopologyEvent
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 TopologyEvent
impl Debug for TopologyEvent
Source§impl<'de> Deserialize<'de> for TopologyEvent
impl<'de> Deserialize<'de> for TopologyEvent
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
Source§impl PartialEq for TopologyEvent
impl PartialEq for TopologyEvent
Source§impl Serialize for TopologyEvent
impl Serialize for TopologyEvent
impl StructuralPartialEq for TopologyEvent
Auto Trait Implementations§
impl Freeze for TopologyEvent
impl RefUnwindSafe for TopologyEvent
impl Send for TopologyEvent
impl Sync for TopologyEvent
impl Unpin for TopologyEvent
impl UnsafeUnpin for TopologyEvent
impl UnwindSafe for TopologyEvent
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