Trait EventRecorder

Source
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§

Source

fn record(&self, event: Box<dyn Event>)

Records an event for persistence and processing by EventHandler.

Source

fn close(&self)

Cancels the event recorder.

Implementors§