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§
fn write(&mut self, tick: u64, stage: DebugStage, frame: &Frame)
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".