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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".