Trait eventsourced::EventSourced
source · pub trait EventSourced{
type Id: Debug + Clone + Send;
type Evt: Debug + Send + Sync + 'static;
const TYPE_NAME: &'static str;
// Required method
fn handle_evt(self, evt: Self::Evt) -> Self;
}Expand description
State and event handling for an EventSourcedEntity.
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn handle_evt(self, evt: Self::Evt) -> Self
fn handle_evt(self, evt: Self::Evt) -> Self
The event handler.
Object Safety§
This trait is not object safe.