Lines Matching refs:Bytes
20 use bytes::Bytes;
89 type HwsimCmdCallback = fn(u32, &Bytes);
156 pub fn process(&self, client_id: u32, packet: &Bytes) -> bool { in process()
164 fn process_internal(&self, client_id: u32, packet: &Bytes) -> anyhow::Result<bool> { in process_internal()
221 pub fn process_response(&self, packet: &Bytes) { in process_response() argument
228 fn send_response(&self, packet: &Bytes) -> anyhow::Result<()> { in send_response()
248 fn send_frame_response(&self, packet: &Bytes, hwsim_msg: &HwsimMsg) -> anyhow::Result<()> { in send_frame_response() argument
266 packet: &Bytes, in send_from_ds_frame() argument
283 fn send_tx_info_response(&self, packet: &Bytes, hwsim_msg: &HwsimMsg) -> anyhow::Result<()> { in send_tx_info_response() argument
623 fn build_tx_info_and_compare(frame_bytes: &Bytes, tx_info_expected_bytes: &Bytes) { in build_tx_info_and_compare() argument
646 let frame_bytes = Bytes::from(include!("test_packets/hwsim_cmd_frame_request.csv")); in test_build_tx_info_and_compare()
648 Bytes::from(include!("test_packets/hwsim_cmd_tx_info_response.csv")); in test_build_tx_info_and_compare()
654 let frame_bytes = Bytes::from(include!("test_packets/hwsim_cmd_frame_request_mdns.csv")); in test_build_tx_info_and_compare_mdns()
656 Bytes::from(include!("test_packets/hwsim_cmd_tx_info_response_mdns.csv")); in test_build_tx_info_and_compare_mdns()