Module biodivine_sketchbook::sketchbook::event_utils
source · Expand description
(internal) Utility functions specifically related to events.
Functions§
- Shorthand to create a “refresh” event for a list of items.
- Shorthand to create a
Consumed::Reversibleinstance given all the components. - Shorthand to create a “state-change” event given a path and potential payload. Payload can be any struct that implements
JsonSerde. - Prepare event for the
dynamic propertiescomponent of thesketch, givenat_path- a path suffix used at the property manager level (afterdynamic), and apayload. - Prepare “state-change” event for the
dynamic propertiescomponent of thesketch, givenat_path- a path suffix used at the properties level (after “dynamic”), and potential payload. Payload can be any struct that implementsJsonSerde. - Prepare event for the
modelcomponent of thesketch, givenat_path- a path suffix used at the model level, and apayload. - Prepare “state-change” event for the
modelcomponent of thesketch, givenat_path- a path suffix used at the model level, and potential payload. Payload can be any struct that implementsJsonSerde. - Prepare event for the
observationscomponent of thesketch, givenat_path- a path suffix used at the observations manager level, and apayload. - Prepare “state-change” event for the
observationscomponent of thesketch, givenat_path- a path suffix used at the observations level, and potential payload. Payload can be any struct that implementsJsonSerde. - Prepare event for the
static propertiescomponent of thesketch, givenat_path- a path suffix used at the property manager level (afterstatic), and apayload. - Prepare “state-change” event for the
static propertiescomponent of thesketch, givenat_path- a path suffix used at the properties level (after “static”), and potential payload. Payload can be any struct that implementsJsonSerde.