Skip to main content

DebugSink

Trait DebugSink 

Source
pub trait DebugSink: Send + 'static {
    // Required method
    fn write(&mut self, tick: u64, stage: DebugStage, frame: &Frame);

    // Provided method
    fn set_label(&mut self, _label: &str) { ... }
}
Expand description

A tap receiving per-tick stage frames from a preprocessor (see StabilityMask::debug_sink).

write is called on the watcher’s tick path — implementations must return immediately (hand off to a thread, drop on lag), never block.

Required Methods§

Source

fn write(&mut self, tick: u64, stage: DebugStage, frame: &Frame)

Provided Methods§

Source

fn set_label(&mut self, _label: &str)

Receives the watcher name at subscribe time (used e.g. for output subdirectories). Default: ignore.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§