pub trait Tap: Sync {
// Required method
fn bytes(&self, data: &[u8]);
}Expand description
A second reader of the console’s output. The drain hands it every slice it writes to the transmitter, markers included, in order and without gaps.
Called from the drain task before the transmitter write, outside the ring’s lock. It must not block: the drain waits for it.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".