pub trait EventGroup {
// Required method
fn names() -> impl Iterator<Item = &'static str>;
}Expand description
Reference multiple event types in a single read stream.
This is used to listen/replay messages for multiple aggregates from a single spot when projecting to a read model (rather than requiring multiple streams and readers for the same functionality).
Note that this trait is implemented automatically for all events, such that they are treated as a single-event group.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.