Crate eventsourced
source ·Expand description
Event sourced entities.
Modules
Structs
A handle for a spawned EventSourced entity which can be used to invoke its command handler.
A SnapshotStore implementation that does nothing.
Sequence number used for events by event log and snapshot store.
Snapshot state along with its sequence number and optional metadata.
An event and an optional tag. Typically not used direcly, but via IntoTaggedEvt or EvtExt.
Enums
Errors from an EntityRef.
Errors from spawning an event sourced entity.
Traits
Command and event handling for an event sourced entity.
Extension methods for types implementing EventSourced.
Provide
with_tag
extension method for events. Together with its blanket implementation for any
event allows for calling with_tag
on any event.Persistence for events.
Used in an EventSourced command handler as impl trait in return position. Together with its
blanked implementation for any event allows for returning plain events without boilerplate.
Persistence for snapshots.