Expand description

Effects that are lazily performed as a result of performing a command of an entity. Effects can be chained with other effects.

Structs

Enums

  • Errors that can occur when applying effects.

Traits

  • The trait that effect types implement.
  • Combinators for use with effects.

Functions

  • An effect to emit an event upon having successfully handed it off to be persisted. The event will be flagged to represent the deletion of an entity instance.
  • An effect to emit an event upon having successfully handed it off to be persisted.
  • An effect to reply an envelope if the previous effect completed successfully. Note that if state from having emitted an event via a prior effect is required, then use a then effect instead.
  • A side effect to run a function asynchronously. The associated behavior is available so that communication channels, for example, can be accessed by the side-effect. Additionally, the latest state given any previous effect having emitted an event, or else the state at the outset of the effects being applied, is also available.
  • An unhandled command producing no effect

Type Definitions