Skip to main content

Module extensions

Module extensions 

Source
Expand description

Extension hooks shared across patterns.

Two flavors:

  1. Named slots — typed closures that the framework runs at well-known points (on_command, on_event). These can fail and surface a crate::PatternError.
  2. Generic taps — fire-and-forget tokio::sync::mpsc senders that receive a clone of every command/event. Use these to bridge into atomr_streams without coupling the pattern surface to a specific Source/Sink shape.

Structs§

ExtensionSlots
Bundle of extension hooks. Reused by every pattern that wants to let users plug in their own actors / sinks at well-known points.

Type Aliases§

CommandInterceptor
A pre-handler interceptor. Receives the command by reference; may reject it (turns into PatternError::Intercepted).
EventListener
A post-persist event listener. Synchronous; fast hooks only — for async work, push events into a tap channel and react out-of-band.