Home
last modified time | relevance | path

Searched refs:as_ref (Results 1 – 24 of 24) sorted by relevance

/tonic/tonic-build/src/
H A Dprost.rs54 let proto_path: &Path = proto.as_ref(); in compile_protos()
371 proto_path.as_ref().to_string(), in extern_path()
372 rust_path.as_ref().to_string(), in extern_path()
382 .push((path.as_ref().to_string(), attribute.as_ref().to_string())); in field_attribute()
391 .push((path.as_ref().to_string(), attribute.as_ref().to_string())); in type_attribute()
404 .push((path.as_ref().to_string(), attribute.as_ref().to_string())); in message_attribute()
413 .push((path.as_ref().to_string(), attribute.as_ref().to_string())); in enum_attribute()
472 .push_mod(path.as_ref().to_string(), attribute.as_ref().to_string()); in server_mod_attribute()
479 .push_struct(path.as_ref().to_string(), attribute.as_ref().to_string()); in server_attribute()
490 .push_mod(path.as_ref().to_string(), attribute.as_ref().to_string()); in client_mod_attribute()
[all …]
H A Dmanual.rs75 self.name = Some(name.as_ref().to_owned()); in name()
84 self.package = Some(package.as_ref().to_owned()); in package()
90 self.comments.push(comment.as_ref().to_owned()); in comment()
284 self.name = Some(name.as_ref().to_owned()); in name()
295 self.route_name = Some(route_name.as_ref().to_owned()); in route_name()
301 self.comments.push(comment.as_ref().to_owned()); in comment()
307 self.input_type = Some(input_type.as_ref().to_owned()); in input_type()
313 self.output_type = Some(output_type.as_ref().to_owned()); in output_type()
321 self.codec_path = Some(codec_path.as_ref().to_owned()); in codec_path()
470 self.out_dir = Some(out_dir.as_ref().to_path_buf()); in out_dir()
[all …]
H A Dlib.rs259 let comment = comment.as_ref(); in generate_doc_comment()
271 doc_stream.append(Literal::string(comment.as_ref())); in generate_doc_comment()
/tonic/tonic/src/transport/
H A Dtls.rs19 let pem = pem.as_ref().into(); in from_pem()
40 fn as_ref(&self) -> &[u8] { in as_ref() method
41 self.pem.as_ref() in as_ref()
57 let key = key.as_ref().into(); in from_pem()
H A Derror.rs85 .as_ref() in source()
/tonic/tonic-types/src/richer_error/error_details/
H A Dmod.rs386 self.retry_info.as_ref() in retry_info()
391 self.debug_info.as_ref() in debug_info()
396 self.quota_failure.as_ref() in quota_failure()
401 self.error_info.as_ref() in error_info()
406 self.precondition_failure.as_ref() in precondition_failure()
411 self.bad_request.as_ref() in bad_request()
416 self.request_info.as_ref() in request_info()
421 self.resource_info.as_ref() in resource_info()
426 self.help.as_ref() in help()
431 self.localized_message.as_ref() in localized_message()
/tonic/tonic-reflection/src/server/
H A Dmod.rs176 let service_name = extract_name(prefix, "service", service.name.as_ref())?; in process_file()
183 let method_name = extract_name(&service_name, "method", method.name.as_ref())?; in process_file()
197 let message_name = extract_name(prefix, "message", msg.name.as_ref())?; in process_message()
213 let oneof_name = extract_name(&message_name, "oneof", oneof.name.as_ref())?; in process_message()
226 let enum_name = extract_name(prefix, "enum", en.name.as_ref())?; in process_enum()
230 let value_name = extract_name(&enum_name, "enum value", value.name.as_ref())?; in process_enum()
243 let field_name = extract_name(prefix, "field", field.name.as_ref())?; in process_field()
/tonic/tonic/src/transport/server/
H A Dtls.rs78 self.identity.as_ref().unwrap(), in tls_acceptor()
79 self.client_ca_root.as_ref(), in tls_acceptor()
/tonic/examples/src/routeguide/
H A Dserver.rs31 if feature.location.as_ref() == Some(request.get_ref()) { in get_feature()
52 if in_range(feature.location.as_ref().unwrap(), request.get_ref()) { in list_features()
86 if feature.location.as_ref() == Some(&point) { in record_route()
156 let lo = rect.lo.as_ref().unwrap(); in in_range()
157 let hi = rect.hi.as_ref().unwrap(); in in_range()
/tonic/tonic/src/metadata/
H A Dkey.rs151 fn as_ref(&self) -> &str { in as_ref() method
157 fn as_ref(&self) -> &[u8] { in as_ref() method
196 Bytes::copy_from_slice(name.inner.as_ref()) in from()
H A Dencoding.rs137 Self::from_bytes(value.as_ref()) in from_shared()
147 HeaderValue::from_maybe_shared_unchecked(Bytes::from_static(value.as_ref())) in from_static()
H A Dvalue.rs292 Self::try_from(src.as_ref())
471 fn as_ref(&self) -> &[u8] { in as_ref() method
472 self.inner.as_ref() in as_ref()
H A Dmap.rs42 fn as_ref(&self) -> &http::HeaderMap { in as_ref() method
1976 inner: self.inner.as_ref().map(|inner| inner.iter()), in iter()
2009 inner: self.inner.as_ref().map(|inner| inner.into_iter()), in into_iter()
/tonic/tonic-reflection/tests/
H A Dserver.rs63 file_descriptor_proto.as_ref(), in test_file_by_filename()
87 file_descriptor_proto.as_ref(), in test_file_containing_symbol()
/tonic/tests/integration_tests/tests/
H A Dconnect_info.rs88 assert!(conn_info.peer_addr.as_ref().unwrap().is_unnamed()); in unary_call()
90 assert!(conn_info.peer_cred.as_ref().is_some()); in unary_call()
/tonic/tonic/src/transport/channel/service/
H A Dtls.rs109 .connect(self.domain.as_ref().to_owned(), io) in connect()
H A Dconnection.rs60 let origin = endpoint.origin.as_ref().unwrap_or(&endpoint.uri).clone(); in new()
/tonic/tonic/src/
H A Dstatus.rs442 let code = Code::from_bytes(header_map.get(Self::GRPC_STATUS)?.as_ref()); in from_header_map()
727 self.source.as_ref().map(|err| (&**err) as _) in source()
1048 Some(self.0.as_ref()) in source()
/tonic/tonic-health/src/
H A Dserver.rs77 let service_name = service_name.as_ref(); in set_service_status()
/tonic/tonic/src/server/
H A Dgrpc.rs488 res.as_ref() in compression_override_from_response()
/tonic/tonic/src/codec/
H A Ddecode.rs289 if let Err(Some(e)) = crate::status::infer_grpc_status(self.trailers.as_ref(), status) { in response()
/tonic/interop/src/
H A Dclient.rs60 let payload_len = body.payload.as_ref().map(|p| p.body.len()).unwrap_or(0); in large_unary()
/tonic/examples/
H A Drouteguide-tutorial.md383 if feature.location.as_ref() == Some(request.get_ref()) {
409 if in_range(feature.location.as_ref().unwrap(), request.get_ref()) {
454 if feature.location.as_ref() == Some(&point) {
/tonic/tonic-web/src/
H A Dcall.rs382 acc.put_slice(key.as_ref()); in encode_trailers()