pub trait EventRecorder:
Send
+ Sync
+ Debug
+ 'static {
// Required methods
fn record(&self, event: Box<dyn Event>);
fn close(&self);
}
Expand description
EventRecorder trait defines the interface for recording events.
Required Methods§
Sourcefn record(&self, event: Box<dyn Event>)
fn record(&self, event: Box<dyn Event>)
Records an event for persistence and processing by EventHandler.