pub trait WireRecorder: Send + Sync {
// Required method
fn record(&self, entry: WireEntry);
}Expand description
Synchronous sink for recorded wire frames.
record is called on the session loop’s encode/decode path, so it must be
cheap and is infallible by contract: implementations log internal errors
(I/O failures, serialization issues) instead of surfacing them — recording
must never take a live session down.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".