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 the sketch, given at_path - a path suffix used at the property manager level (after dynamic), and a payload.
  • Prepare “state-change” event for the dynamic properties component of the sketch, given at_path - a path suffix used at the properties level (after “dynamic”), and potential payload. Payload can be any struct that implements JsonSerde.
  • Prepare event for the model component of the sketch, given at_path - a path suffix used at the model level, and a payload.
  • Prepare “state-change” event for the model component of the sketch, given at_path - a path suffix used at the model level, and potential payload. Payload can be any struct that implements JsonSerde.
  • Prepare event for the observations component of the sketch, given at_path - a path suffix used at the observations manager level, and a payload.
  • Prepare “state-change” event for the observations component of the sketch, given at_path - a path suffix used at the observations level, and potential payload. Payload can be any struct that implements JsonSerde.
  • Prepare event for the static properties component of the sketch, given at_path - a path suffix used at the property manager level (after static), and a payload.
  • Prepare “state-change” event for the static properties component of the sketch, given at_path - a path suffix used at the properties level (after “static”), and potential payload. Payload can be any struct that implements JsonSerde.