pub enum TopologyEvent {
NodeRegistered(NodeId),
NodeTornDown(NodeId),
DepsChanged {
node: NodeId,
old_deps: Vec<NodeId>,
new_deps: Vec<NodeId>,
},
}Expand description
What changed in the topology.
Variants§
NodeRegistered(NodeId)
A new node was registered (state, derived, or dynamic).
NodeTornDown(NodeId)
A node received TEARDOWN (terminal destruction).
DepsChanged
A node’s deps were atomically replaced via set_deps.
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 moreAuto 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