pub fn encode_header( is_server: bool, is_be: bool, is_control: bool, version: u8, command: u8, payload_length: u32, ) -> Vec<u8> ⓘ