Skip to main content

EventSink

Trait EventSink 

Source
pub trait EventSink {
    // Required method
    fn push(&mut self, event: BlockEvent<'_>) -> Result<()>;
}
Expand description

Sink that accepts events emitted by a processor during a block.

Required Methods§

Source

fn push(&mut self, event: BlockEvent<'_>) -> Result<()>

Pushes one event into the sink.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§