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::Reversible
instance 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 properties
component of thesketch
, givenat_path
- a path suffix used at the property manager level (afterdynamic
), and apayload
. - Prepare “state-change” event for the
dynamic properties
component 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
model
component of thesketch
, givenat_path
- a path suffix used at the model level, and apayload
. - Prepare “state-change” event for the
model
component 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
observations
component of thesketch
, givenat_path
- a path suffix used at the observations manager level, and apayload
. - Prepare “state-change” event for the
observations
component 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 properties
component of thesketch
, givenat_path
- a path suffix used at the property manager level (afterstatic
), and apayload
. - Prepare “state-change” event for the
static properties
component of thesketch
, givenat_path
- a path suffix used at the properties level (after “static”), and potential payload. Payload can be any struct that implementsJsonSerde
.