pub fn encode_frame<T: Serialize>(msg: &T) -> Result<Vec<u8>, Error>
Encode a message into one complete frame (u32 LE length + body).
u32 LE length