pub fn encode_frame(ev: &ProbeEvent) -> Result<Vec<u8>, WireError>Expand description
CBOR-encode a ProbeEvent and prepend the 4-byte LE frame-length
header.
Returns WireError::FrameTooLarge if the body exceeds
MAX_FRAME_BODY_BYTES — that is a budget the host enforces too, so
failing locally avoids putting an unreceivable frame on the wire.