Lines Matching refs:to_string
240 State::ON => "up".to_string(), in chip_state_to_string()
241 State::OFF => "down".to_string(), in chip_state_to_string()
242 _ => "unknown".to_string(), in chip_state_to_string()
248 State::ON => "on".to_string(), in capture_state_to_string()
249 State::OFF => "off".to_string(), in capture_state_to_string()
250 _ => "unknown".to_string(), in capture_state_to_string()
256 OnOffState::On => "on".to_string(), in on_off_state_to_string()
257 OnOffState::Off => "off".to_string(), in on_off_state_to_string()
311 .to_string() in print_list_capture_response()
339 capture.id.to_string(), in print_list_capture_response()
360 ChipKind::UNSPECIFIED => "UNSPECIFIED".to_string(), in chip_kind_to_string()
361 ChipKind::BLUETOOTH => "BLUETOOTH".to_string(), in chip_kind_to_string()
362 ChipKind::WIFI => "WIFI".to_string(), in chip_kind_to_string()
363 ChipKind::UWB => "UWB".to_string(), in chip_kind_to_string()
371 capture.id.to_string().contains(&key) in filter_captures()
393 device_name: "device 1".to_string(), in capture_1()
401 device_name: "device 1".to_string(), in capture_1_wifi()
409 device_name: "device 2".to_string(), in capture_2()
417 device_name: "device 3".to_string(), in capture_3()
425 device_name: "device 4".to_string(), in capture_4_uwb()
435 test_filter_captures_helper(vec!["test".to_string()], vec![]); in test_no_match()
440 test_filter_captures_helper(vec!["device".to_string()], all_test_captures()); in test_all_match()
445 test_filter_captures_helper(vec!["4001".to_string()], vec![capture_1()]); in test_match_capture_id()
446 test_filter_captures_helper(vec!["03".to_string()], vec![capture_2()]); in test_match_capture_id()
447 test_filter_captures_helper(vec!["40".to_string()], all_test_captures()); in test_match_capture_id()
453 vec!["device 1".to_string()], in test_match_device_name()
456 test_filter_captures_helper(vec![" 2".to_string()], vec![capture_2()]); in test_match_device_name()
462 vec!["DEVICE 1".to_string()], in test_match_device_name_case_insensitive()
469 test_filter_captures_helper(vec!["wifi".to_string()], vec![capture_1_wifi(), capture_3()]); in test_match_wifi()
470 test_filter_captures_helper(vec!["WIFI".to_string()], vec![capture_1_wifi(), capture_3()]); in test_match_wifi()
475 test_filter_captures_helper(vec!["uwb".to_string()], vec![capture_4_uwb()]); in test_match_uwb()
476 test_filter_captures_helper(vec!["UWB".to_string()], vec![capture_4_uwb()]); in test_match_uwb()
481 test_filter_captures_helper(vec!["BLUETOOTH".to_string()], vec![capture_1(), capture_2()]); in test_match_bt()
482 test_filter_captures_helper(vec!["blue".to_string()], vec![capture_1(), capture_2()]); in test_match_bt()
488 vec!["device 1".to_string(), "wifi".to_string()], in test_match_name_and_chip()