pub fn encode_frame<H: Serialize>(header: &H, payload: &[u8]) -> Vec<u8> ⓘ
The frame of header, a struct or map, and payload.
header
payload