Trait KeyLogSink
pub trait KeyLogSink:
Send
+ Sync
+ Debug {
// Required method
fn write_line(&self, line: &str);
}Available on crate feature
net only.Expand description
Consumer of TLS keylog lines.
Each call carries one complete NSS-format keylog line, including
its trailing \n. Implementations must persist the bytes verbatim
and must NOT block the caller — TLS handshakes feed this synchronously
from inside the crypto stack. Disk I/O belongs on a background worker.
Object-safe; sinks are usually held behind Arc<dyn KeyLogSink> at
the KeyLogIntent::Custom boundary. The Arc blanket below lets
Arc<MyConcreteSink> flow through the same APIs unchanged.
Required Methods§
fn write_line(&self, line: &str)
fn write_line(&self, line: &str)
Submit one keylog line (\n-terminated).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".