Skip to main content

EventSink

Trait EventSink 

Source
pub trait EventSink: Send {
    // Required method
    fn emit(&mut self, event: Event);
}
Expand description

A sink for the loop’s Events. &mut self so a writer sink can buffer/flush; object-safe so locode-exec can pick one at runtime by --output-format.

Required Methods§

Source

fn emit(&mut self, event: Event)

Receive one event (called in emission order).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§