Lines Matching refs:std

33     pub reason: ::std::option::Option<::protobuf::EnumOrUnknown<invalid_packet::Reason>>,
35 pub description: ::std::option::Option<::std::string::String>,
37 pub packet: ::std::option::Option<::std::vec::Vec<u8>>,
43 impl<'a> ::std::default::Default for &'a InvalidPacket {
51 ::std::default::Default::default() in new()
64 self.reason = ::std::option::Option::None; in clear_reason()
73 self.reason = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v)); in set_reason()
86 self.description = ::std::option::Option::None; in clear_description()
94 pub fn set_description(&mut self, v: ::std::string::String) { in set_description()
95 self.description = ::std::option::Option::Some(v); in set_description()
100 pub fn mut_description(&mut self) -> &mut ::std::string::String { in mut_description()
102 self.description = ::std::option::Option::Some(::std::string::String::new()); in mut_description()
108 pub fn take_description(&mut self) -> ::std::string::String { in take_description()
109 self.description.take().unwrap_or_else(|| ::std::string::String::new()) in take_description()
122 self.packet = ::std::option::Option::None; in clear_packet()
130 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet()
131 self.packet = ::std::option::Option::Some(v); in set_packet()
136 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet()
138 self.packet = ::std::option::Option::Some(::std::vec::Vec::new()); in mut_packet()
144 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet()
145 self.packet.take().unwrap_or_else(|| ::std::vec::Vec::new()) in take_packet()
149 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data()
150 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data()
185 self.reason = ::std::option::Option::Some(is.read_enum_or_unknown()?); in merge_from()
188 self.description = ::std::option::Option::Some(is.read_string()?); in merge_from()
191 self.packet = ::std::option::Option::Some(is.read_bytes()?); in merge_from()
198 ::std::result::Result::Ok(()) in merge_from()
230 ::std::result::Result::Ok(()) in write_to_with_cached_sizes()
246 self.reason = ::std::option::Option::None; in clear()
247 self.description = ::std::option::Option::None; in clear()
248 self.packet = ::std::option::Option::None; in clear()
254 reason: ::std::option::Option::None, in default_instance()
255 description: ::std::option::Option::None, in default_instance()
256 packet: ::std::option::Option::None, in default_instance()
270 impl ::std::fmt::Display for InvalidPacket {
271 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
304 fn from_i32(value: i32) -> ::std::option::Option<Reason> { in from_i32()
306 0 => ::std::option::Option::Some(Reason::UNKNOWN), in from_i32()
307 1 => ::std::option::Option::Some(Reason::PARSE_ERROR), in from_i32()
308 2 => ::std::option::Option::Some(Reason::UNSUPPORTED), in from_i32()
309 3 => ::std::option::Option::Some(Reason::OTHERS), in from_i32()
310 4 => ::std::option::Option::Some(Reason::DELAYED), in from_i32()
311 _ => ::std::option::Option::None in from_i32()
336 impl ::std::default::Default for Reason {
354 pub device_id: ::std::option::Option<u32>,
356 pub kind: ::std::option::Option<::protobuf::EnumOrUnknown<netsim_radio_stats::Kind>>,
358 pub duration_secs: ::std::option::Option<u64>,
360 pub tx_count: ::std::option::Option<i32>,
362 pub rx_count: ::std::option::Option<i32>,
364 pub tx_bytes: ::std::option::Option<i32>,
366 pub rx_bytes: ::std::option::Option<i32>,
368 pub invalid_packets: ::std::vec::Vec<InvalidPacket>,
374 impl<'a> ::std::default::Default for &'a NetsimRadioStats {
382 ::std::default::Default::default() in new()
392 self.device_id = ::std::option::Option::None; in clear_device_id()
401 self.device_id = ::std::option::Option::Some(v); in set_device_id()
414 self.kind = ::std::option::Option::None; in clear_kind()
423 self.kind = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v)); in set_kind()
433 self.duration_secs = ::std::option::Option::None; in clear_duration_secs()
442 self.duration_secs = ::std::option::Option::Some(v); in set_duration_secs()
452 self.tx_count = ::std::option::Option::None; in clear_tx_count()
461 self.tx_count = ::std::option::Option::Some(v); in set_tx_count()
471 self.rx_count = ::std::option::Option::None; in clear_rx_count()
480 self.rx_count = ::std::option::Option::Some(v); in set_rx_count()
490 self.tx_bytes = ::std::option::Option::None; in clear_tx_bytes()
499 self.tx_bytes = ::std::option::Option::Some(v); in set_tx_bytes()
509 self.rx_bytes = ::std::option::Option::None; in clear_rx_bytes()
518 self.rx_bytes = ::std::option::Option::Some(v); in set_rx_bytes()
522 let mut fields = ::std::vec::Vec::with_capacity(8); in generated_message_descriptor_data()
523 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data()
583 self.device_id = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
586 self.kind = ::std::option::Option::Some(is.read_enum_or_unknown()?); in merge_from()
589 self.duration_secs = ::std::option::Option::Some(is.read_uint64()?); in merge_from()
592 self.tx_count = ::std::option::Option::Some(is.read_int32()?); in merge_from()
595 self.rx_count = ::std::option::Option::Some(is.read_int32()?); in merge_from()
598 self.tx_bytes = ::std::option::Option::Some(is.read_int32()?); in merge_from()
601 self.rx_bytes = ::std::option::Option::Some(is.read_int32()?); in merge_from()
611 ::std::result::Result::Ok(()) in merge_from()
674 ::std::result::Result::Ok(()) in write_to_with_cached_sizes()
690 self.device_id = ::std::option::Option::None; in clear()
691 self.kind = ::std::option::Option::None; in clear()
692 self.duration_secs = ::std::option::Option::None; in clear()
693 self.tx_count = ::std::option::Option::None; in clear()
694 self.rx_count = ::std::option::Option::None; in clear()
695 self.tx_bytes = ::std::option::Option::None; in clear()
696 self.rx_bytes = ::std::option::Option::None; in clear()
703 device_id: ::std::option::Option::None, in default_instance()
704 kind: ::std::option::Option::None, in default_instance()
705 duration_secs: ::std::option::Option::None, in default_instance()
706 tx_count: ::std::option::Option::None, in default_instance()
707 rx_count: ::std::option::Option::None, in default_instance()
708 tx_bytes: ::std::option::Option::None, in default_instance()
709 rx_bytes: ::std::option::Option::None, in default_instance()
710 invalid_packets: ::std::vec::Vec::new(), in default_instance()
724 impl ::std::fmt::Display for NetsimRadioStats {
725 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
762 fn from_i32(value: i32) -> ::std::option::Option<Kind> { in from_i32()
764 0 => ::std::option::Option::Some(Kind::UNSPECIFIED), in from_i32()
765 1 => ::std::option::Option::Some(Kind::BLUETOOTH_LOW_ENERGY), in from_i32()
766 2 => ::std::option::Option::Some(Kind::BLUETOOTH_CLASSIC), in from_i32()
767 3 => ::std::option::Option::Some(Kind::BLE_BEACON), in from_i32()
768 4 => ::std::option::Option::Some(Kind::WIFI), in from_i32()
769 5 => ::std::option::Option::Some(Kind::UWB), in from_i32()
770 6 => ::std::option::Option::Some(Kind::NFC), in from_i32()
771 _ => ::std::option::Option::None in from_i32()
798 impl ::std::default::Default for Kind {
816 pub get_version: ::std::option::Option<u32>,
818 pub create_device: ::std::option::Option<u32>,
820 pub delete_chip: ::std::option::Option<u32>,
822 pub patch_device: ::std::option::Option<u32>,
824 pub reset: ::std::option::Option<u32>,
826 pub list_device: ::std::option::Option<u32>,
828 pub subscribe_device: ::std::option::Option<u32>,
830 pub patch_capture: ::std::option::Option<u32>,
832 pub list_capture: ::std::option::Option<u32>,
834 pub get_capture: ::std::option::Option<u32>,
840 impl<'a> ::std::default::Default for &'a NetsimFrontendStats {
848 ::std::default::Default::default() in new()
858 self.get_version = ::std::option::Option::None; in clear_get_version()
867 self.get_version = ::std::option::Option::Some(v); in set_get_version()
877 self.create_device = ::std::option::Option::None; in clear_create_device()
886 self.create_device = ::std::option::Option::Some(v); in set_create_device()
896 self.delete_chip = ::std::option::Option::None; in clear_delete_chip()
905 self.delete_chip = ::std::option::Option::Some(v); in set_delete_chip()
915 self.patch_device = ::std::option::Option::None; in clear_patch_device()
924 self.patch_device = ::std::option::Option::Some(v); in set_patch_device()
934 self.reset = ::std::option::Option::None; in clear_reset()
943 self.reset = ::std::option::Option::Some(v); in set_reset()
953 self.list_device = ::std::option::Option::None; in clear_list_device()
962 self.list_device = ::std::option::Option::Some(v); in set_list_device()
972 self.subscribe_device = ::std::option::Option::None; in clear_subscribe_device()
981 self.subscribe_device = ::std::option::Option::Some(v); in set_subscribe_device()
991 self.patch_capture = ::std::option::Option::None; in clear_patch_capture()
1000 self.patch_capture = ::std::option::Option::Some(v); in set_patch_capture()
1010 self.list_capture = ::std::option::Option::None; in clear_list_capture()
1019 self.list_capture = ::std::option::Option::Some(v); in set_list_capture()
1029 self.get_capture = ::std::option::Option::None; in clear_get_capture()
1038 self.get_capture = ::std::option::Option::Some(v); in set_get_capture()
1042 let mut fields = ::std::vec::Vec::with_capacity(10); in generated_message_descriptor_data()
1043 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data()
1113 self.get_version = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1116 self.create_device = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1119 self.delete_chip = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1122 self.patch_device = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1125 self.reset = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1128 self.list_device = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1131 self.subscribe_device = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1134 self.patch_capture = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1137 self.list_capture = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1140 self.get_capture = ::std::option::Option::Some(is.read_uint32()?); in merge_from()
1147 ::std::result::Result::Ok(()) in merge_from()
1221 ::std::result::Result::Ok(()) in write_to_with_cached_sizes()
1237 self.get_version = ::std::option::Option::None; in clear()
1238 self.create_device = ::std::option::Option::None; in clear()
1239 self.delete_chip = ::std::option::Option::None; in clear()
1240 self.patch_device = ::std::option::Option::None; in clear()
1241 self.reset = ::std::option::Option::None; in clear()
1242 self.list_device = ::std::option::Option::None; in clear()
1243 self.subscribe_device = ::std::option::Option::None; in clear()
1244 self.patch_capture = ::std::option::Option::None; in clear()
1245 self.list_capture = ::std::option::Option::None; in clear()
1246 self.get_capture = ::std::option::Option::None; in clear()
1252 get_version: ::std::option::Option::None, in default_instance()
1253 create_device: ::std::option::Option::None, in default_instance()
1254 delete_chip: ::std::option::Option::None, in default_instance()
1255 patch_device: ::std::option::Option::None, in default_instance()
1256 reset: ::std::option::Option::None, in default_instance()
1257 list_device: ::std::option::Option::None, in default_instance()
1258 subscribe_device: ::std::option::Option::None, in default_instance()
1259 patch_capture: ::std::option::Option::None, in default_instance()
1260 list_capture: ::std::option::Option::None, in default_instance()
1261 get_capture: ::std::option::Option::None, in default_instance()
1275 impl ::std::fmt::Display for NetsimFrontendStats {
1276 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
1290 pub duration_secs: ::std::option::Option<u64>,
1292 pub device_count: ::std::option::Option<i32>,
1294 pub peak_concurrent_devices: ::std::option::Option<i32>,
1296 pub radio_stats: ::std::vec::Vec<NetsimRadioStats>,
1298 pub version: ::std::option::Option<::std::string::String>,
1306 impl<'a> ::std::default::Default for &'a NetsimStats {
1314 ::std::default::Default::default() in new()
1324 self.duration_secs = ::std::option::Option::None; in clear_duration_secs()
1333 self.duration_secs = ::std::option::Option::Some(v); in set_duration_secs()
1343 self.device_count = ::std::option::Option::None; in clear_device_count()
1352 self.device_count = ::std::option::Option::Some(v); in set_device_count()
1362 self.peak_concurrent_devices = ::std::option::Option::None; in clear_peak_concurrent_devices()
1371 self.peak_concurrent_devices = ::std::option::Option::Some(v); in set_peak_concurrent_devices()
1384 self.version = ::std::option::Option::None; in clear_version()
1392 pub fn set_version(&mut self, v: ::std::string::String) { in set_version()
1393 self.version = ::std::option::Option::Some(v); in set_version()
1398 pub fn mut_version(&mut self) -> &mut ::std::string::String { in mut_version()
1400 self.version = ::std::option::Option::Some(::std::string::String::new()); in mut_version()
1406 pub fn take_version(&mut self) -> ::std::string::String { in take_version()
1407 self.version.take().unwrap_or_else(|| ::std::string::String::new()) in take_version()
1411 let mut fields = ::std::vec::Vec::with_capacity(6); in generated_message_descriptor_data()
1412 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data()
1462 self.duration_secs = ::std::option::Option::Some(is.read_uint64()?); in merge_from()
1465 self.device_count = ::std::option::Option::Some(is.read_int32()?); in merge_from()
1468 self.peak_concurrent_devices = ::std::option::Option::Some(is.read_int32()?); in merge_from()
1474 self.version = ::std::option::Option::Some(is.read_string()?); in merge_from()
1484 ::std::result::Result::Ok(()) in merge_from()
1536 ::std::result::Result::Ok(()) in write_to_with_cached_sizes()
1552 self.duration_secs = ::std::option::Option::None; in clear()
1553 self.device_count = ::std::option::Option::None; in clear()
1554 self.peak_concurrent_devices = ::std::option::Option::None; in clear()
1556 self.version = ::std::option::Option::None; in clear()
1563 duration_secs: ::std::option::Option::None, in default_instance()
1564 device_count: ::std::option::Option::None, in default_instance()
1565 peak_concurrent_devices: ::std::option::Option::None, in default_instance()
1566 radio_stats: ::std::vec::Vec::new(), in default_instance()
1567 version: ::std::option::Option::None, in default_instance()
1582 impl ::std::fmt::Display for NetsimStats {
1583 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
1642 let mut deps = ::std::vec::Vec::with_capacity(0); in file_descriptor()
1643 let mut messages = ::std::vec::Vec::with_capacity(4); in file_descriptor()
1648 let mut enums = ::std::vec::Vec::with_capacity(2); in file_descriptor()