Lines Matching refs:std
32 pub request_type: ::std::option::Option<packet_request::Request_type>,
38 impl<'a> ::std::default::Default for &'a PacketRequest {
46 ::std::default::Default::default() in new()
53 ::std::option::Option::Some(packet_request::Request_type::InitialInfo(ref v)) => v, in initial_info()
59 self.request_type = ::std::option::Option::None; in clear_initial_info()
64 ::std::option::Option::Some(packet_request::Request_type::InitialInfo(..)) => true, in has_initial_info()
71 … self.request_type = ::std::option::Option::Some(packet_request::Request_type::InitialInfo(v)) in set_initial_info()
76 …if let ::std::option::Option::Some(packet_request::Request_type::InitialInfo(_)) = self.request_ty… in mut_initial_info()
78 …self.request_type = ::std::option::Option::Some(packet_request::Request_type::InitialInfo(super::s… in mut_initial_info()
81 ::std::option::Option::Some(packet_request::Request_type::InitialInfo(ref mut v)) => v, in mut_initial_info()
90 ::std::option::Option::Some(packet_request::Request_type::InitialInfo(v)) => v, in take_initial_info()
102 ::std::option::Option::Some(packet_request::Request_type::HciPacket(ref v)) => v, in hci_packet()
108 self.request_type = ::std::option::Option::None; in clear_hci_packet()
113 ::std::option::Option::Some(packet_request::Request_type::HciPacket(..)) => true, in has_hci_packet()
120 self.request_type = ::std::option::Option::Some(packet_request::Request_type::HciPacket(v)) in set_hci_packet()
125 …if let ::std::option::Option::Some(packet_request::Request_type::HciPacket(_)) = self.request_type… in mut_hci_packet()
127 …self.request_type = ::std::option::Option::Some(packet_request::Request_type::HciPacket(super::hci… in mut_hci_packet()
130 ::std::option::Option::Some(packet_request::Request_type::HciPacket(ref mut v)) => v, in mut_hci_packet()
139 ::std::option::Option::Some(packet_request::Request_type::HciPacket(v)) => v, in take_hci_packet()
151 ::std::option::Option::Some(packet_request::Request_type::Packet(ref v)) => v, in packet()
157 self.request_type = ::std::option::Option::None; in clear_packet()
162 ::std::option::Option::Some(packet_request::Request_type::Packet(..)) => true, in has_packet()
168 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet()
169 self.request_type = ::std::option::Option::Some(packet_request::Request_type::Packet(v)) in set_packet()
173 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet()
174 … if let ::std::option::Option::Some(packet_request::Request_type::Packet(_)) = self.request_type { in mut_packet()
176 …self.request_type = ::std::option::Option::Some(packet_request::Request_type::Packet(::std::vec::V… in mut_packet()
179 ::std::option::Option::Some(packet_request::Request_type::Packet(ref mut v)) => v, in mut_packet()
185 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet()
188 ::std::option::Option::Some(packet_request::Request_type::Packet(v)) => v, in take_packet()
192 ::std::vec::Vec::new() in take_packet()
197 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data()
198 let mut oneofs = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data()
239 …self.request_type = ::std::option::Option::Some(packet_request::Request_type::InitialInfo(is.read_… in merge_from()
242 …self.request_type = ::std::option::Option::Some(packet_request::Request_type::HciPacket(is.read_me… in merge_from()
245 …self.request_type = ::std::option::Option::Some(packet_request::Request_type::Packet(is.read_bytes… in merge_from()
252 ::std::result::Result::Ok(()) in merge_from()
259 if let ::std::option::Option::Some(ref v) = self.request_type { in compute_size()
280 if let ::std::option::Option::Some(ref v) = self.request_type { in write_to_with_cached_sizes()
294 ::std::result::Result::Ok(()) in write_to_with_cached_sizes()
310 self.request_type = ::std::option::Option::None; in clear()
311 self.request_type = ::std::option::Option::None; in clear()
312 self.request_type = ::std::option::Option::None; in clear()
318 request_type: ::std::option::Option::None, in default_instance()
332 impl ::std::fmt::Display for PacketRequest {
333 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
354 Packet(::std::vec::Vec<u8>),
378 pub response_type: ::std::option::Option<packet_response::Response_type>,
384 impl<'a> ::std::default::Default for &'a PacketResponse {
392 ::std::default::Default::default() in new()
399 ::std::option::Option::Some(packet_response::Response_type::Error(ref v)) => v, in error()
405 self.response_type = ::std::option::Option::None; in clear_error()
410 ::std::option::Option::Some(packet_response::Response_type::Error(..)) => true, in has_error()
416 pub fn set_error(&mut self, v: ::std::string::String) { in set_error()
417 self.response_type = ::std::option::Option::Some(packet_response::Response_type::Error(v)) in set_error()
421 pub fn mut_error(&mut self) -> &mut ::std::string::String { in mut_error()
422 …if let ::std::option::Option::Some(packet_response::Response_type::Error(_)) = self.response_type { in mut_error()
424 …self.response_type = ::std::option::Option::Some(packet_response::Response_type::Error(::std::stri… in mut_error()
427 ::std::option::Option::Some(packet_response::Response_type::Error(ref mut v)) => v, in mut_error()
433 pub fn take_error(&mut self) -> ::std::string::String { in take_error()
436 ::std::option::Option::Some(packet_response::Response_type::Error(v)) => v, in take_error()
440 ::std::string::String::new() in take_error()
448 ::std::option::Option::Some(packet_response::Response_type::HciPacket(ref v)) => v, in hci_packet()
454 self.response_type = ::std::option::Option::None; in clear_hci_packet()
459 ::std::option::Option::Some(packet_response::Response_type::HciPacket(..)) => true, in has_hci_packet()
466 … self.response_type = ::std::option::Option::Some(packet_response::Response_type::HciPacket(v)) in set_hci_packet()
471 …if let ::std::option::Option::Some(packet_response::Response_type::HciPacket(_)) = self.response_t… in mut_hci_packet()
473 …self.response_type = ::std::option::Option::Some(packet_response::Response_type::HciPacket(super::… in mut_hci_packet()
476 ::std::option::Option::Some(packet_response::Response_type::HciPacket(ref mut v)) => v, in mut_hci_packet()
485 ::std::option::Option::Some(packet_response::Response_type::HciPacket(v)) => v, in take_hci_packet()
497 ::std::option::Option::Some(packet_response::Response_type::Packet(ref v)) => v, in packet()
503 self.response_type = ::std::option::Option::None; in clear_packet()
508 ::std::option::Option::Some(packet_response::Response_type::Packet(..)) => true, in has_packet()
514 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet()
515 self.response_type = ::std::option::Option::Some(packet_response::Response_type::Packet(v)) in set_packet()
519 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet()
520 …if let ::std::option::Option::Some(packet_response::Response_type::Packet(_)) = self.response_type… in mut_packet()
522 …self.response_type = ::std::option::Option::Some(packet_response::Response_type::Packet(::std::vec… in mut_packet()
525 ::std::option::Option::Some(packet_response::Response_type::Packet(ref mut v)) => v, in mut_packet()
531 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet()
534 ::std::option::Option::Some(packet_response::Response_type::Packet(v)) => v, in take_packet()
538 ::std::vec::Vec::new() in take_packet()
543 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data()
544 let mut oneofs = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data()
584 …self.response_type = ::std::option::Option::Some(packet_response::Response_type::Error(is.read_str… in merge_from()
587 …self.response_type = ::std::option::Option::Some(packet_response::Response_type::HciPacket(is.read… in merge_from()
590 …self.response_type = ::std::option::Option::Some(packet_response::Response_type::Packet(is.read_by… in merge_from()
597 ::std::result::Result::Ok(()) in merge_from()
604 if let ::std::option::Option::Some(ref v) = self.response_type { in compute_size()
624 if let ::std::option::Option::Some(ref v) = self.response_type { in write_to_with_cached_sizes()
638 ::std::result::Result::Ok(()) in write_to_with_cached_sizes()
654 self.response_type = ::std::option::Option::None; in clear()
655 self.response_type = ::std::option::Option::None; in clear()
656 self.response_type = ::std::option::Option::None; in clear()
662 response_type: ::std::option::Option::None, in default_instance()
676 impl ::std::fmt::Display for PacketResponse {
677 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
694 Error(::std::string::String),
698 Packet(::std::vec::Vec<u8>),
746 let mut deps = ::std::vec::Vec::with_capacity(2); in file_descriptor()
749 let mut messages = ::std::vec::Vec::with_capacity(2); in file_descriptor()
752 let mut enums = ::std::vec::Vec::with_capacity(0); in file_descriptor()