Skip to main content

EventRecorder

Trait EventRecorder 

Source
pub trait EventRecorder:
    Send
    + Sync
    + Debug
    + 'static {
    // Required methods
    fn record(&self, event: Box<dyn Event>);
    fn event_type_filter(&self) -> EventTypeFilterRef;
    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 event_type_filter(&self) -> EventTypeFilterRef

Returns the event types accepted by this recorder.

Source

fn close(&self)

Cancels the event recorder.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§