Skip to main content

DomainEvent

Trait DomainEvent 

Source
pub trait DomainEvent:
    Debug
    + Send
    + Sync
    + 'static { }
Expand description

Something that happened in the domain, recorded by an crate::domain::AggregateRoot and later published through an crate::port::event::EventDispatcher.

§Examples

See AggregateRoot for a worked example of recording and draining DomainEvents.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§