Expand description
Extension hooks shared across patterns.
Two flavors:
- Named slots — typed closures that the framework runs at
well-known points (
on_command,on_event). These can fail and surface acrate::PatternError. - Generic taps — fire-and-forget
tokio::sync::mpscsenders that receive a clone of every command/event. Use these to bridge intoatomr_streamswithout coupling the pattern surface to a specific Source/Sink shape.
Structs§
- Extension
Slots - 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§
- Command
Interceptor - A pre-handler interceptor. Receives the command by reference; may
reject it (turns into
PatternError::Intercepted). - Event
Listener - A post-persist event listener. Synchronous; fast hooks only — for async work, push events into a tap channel and react out-of-band.