Module graph

Module graph 

Source
Expand description

Signal graph management and runtime.

Structs§

SignalHandle
Handle to a particular node of the signal graph, returned by SignalExt::register, SignalVecExt::register, and SignalMapExt::register. In order for signals to be appropriately cleaned up, for every call to .register made to some particular signal or its clones, SignalHandle::cleanup must be called on a corresponding SignalHandle or a downstream SignalHandle. Adding SignalHandles to the SignalHandles Component will take care of this when the corresponding Entity is despawned, and using the JonmoBuilder will manage this internally.
SignalHandles
Stores SignalHandles tied to the lifetime of some Entity, .cleanup-ing them when the Entity is despawned.
SignalSystem
Newtype wrapper for Entitys that hold systems in the signal graph.

Traits§

AnyClone
An extension trait for Any types that implement Clone.

Functions§

downcast_any_clone
Utility function for extracting values from AnyClones, e.g. those returned by poll_signal.
poll_signal
Get a signal’s current value by running all of it’s dependencies.