WireRecorder

Trait WireRecorder 

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§

fn record(&self, entry: WireEntry)

Record one wire frame. Must not panic; log errors internally.

Implementors§