Skip to main content

Reporter

Trait Reporter 

Source
pub trait Reporter: Sync {
    // Required method
    fn event(&self, ev: Event);
}
Expand description

A sink for Events. Implementations must be cheap and thread-safe.

Required Methods§

Source

fn event(&self, ev: Event)

Handle a single event.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§