Skip to main content

Sink

Trait Sink 

Source
pub trait Sink: Send {
    // Required methods
    fn kinds(&self) -> Vec<EventKind>;
    fn handle(&mut self, e: &Event);
}
Expand description

A hook that receives events and produces output.

Required Methods§

Source

fn kinds(&self) -> Vec<EventKind>

Event kinds it handles.

Source

fn handle(&mut self, e: &Event)

Handle one event. A failure is recorded in run.log and does not panic.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§