Skip to main content

FlightRecorderSink

Trait FlightRecorderSink 

Source
pub trait FlightRecorderSink: Send + Sync {
    // Required method
    fn push(&self, event: FlightRecorderEvent);
}
Expand description

Destination for events captured by the Flight Recorder.

Both the tracing layer and externally written events (e.g. from TypeScript) push through the active sink, so a sink sees every captured event regardless of where it came from.

Required Methods§

Source

fn push(&self, event: FlightRecorderEvent)

Accept one captured event.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§