Crate int_compute [] [src]

An abstract interface for internally computed values

Most headers for flows are generated by data sources. These are external, however. Sometimes the values need to be computed based on other data (either on the same flow or data seen on some other flows).

This abstract interface (IntCompute) allows for providing modules that do just that ‒ watch events on flows and produce more potential updates.

The computation gets events about changes on the flows. During these event callbacks it can query the existing flows for further information (eg. when it wants to look into different flow than the one that caused the event) and produce updates to flows.

Care should be taken not to cause infinite loops of updates, it should produce an update only if something really changes.

Enums

Event

Some event the internal computation might want to react to.

Traits

Factory

A factory for a single type of internal computation.

IntCompute

The internal computation itself.

Query

An interface to query existing flows.