pub fn encode_versioned_sync_frame(frame: &SyncFrame) -> Result<Vec<u8>>Expand description
Encode a SyncFrame and wrap its bytes in a v2 versioned envelope.
The inner bytes are SyncFrame::to_bytes() output. The outer envelope
lets the receiving peer detect and reject incompatible future versions
rather than silently misinterpreting the frame.