Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 105) sorted by relevance

12345

/tonic/examples/
H A DCargo.toml5 name = "examples"
8 name = "helloworld-server"
12 name = "helloworld-client"
16 name = "blocking-server"
20 name = "blocking-client"
58 name = "tls-client"
63 name = "tls-server"
106 name = "gcp-client"
121 name = "uds-client"
126 name = "uds-server"
[all …]
H A Dbuild.rs54 .name("Greeter") in build_json_codec_service()
58 .name("say_hello") in build_json_codec_service()
H A Dhelloworld-tutorial.md47 … our package name, which is what Tonic looks for when including your protos in the client and serv…
67 // Request message contains the name to be greeted
68 string name = 1;
88 string name = 1;
102 name = "helloworld-tonic"
107 name = "helloworld-server"
111 name = "helloworld-client"
151 …tonic::include_proto!("helloworld"); // The string specified here must match the proto package name
219 message: format!("Hello {}!", request.into_inner().name),
279 name: "Tonic".into(),
[all …]
/tonic/tonic-build/src/
H A Dmanual.rs74 pub fn name(mut self, name: impl AsRef<str>) -> Self { in name() method
75 self.name = Some(name.as_ref().to_owned()); in name()
105 name: self.name.unwrap(), in build()
117 name: String, field
139 &self.name in name()
147 &self.name in identifier()
163 name: String, field
193 &self.name in name()
283 pub fn name(mut self, name: impl AsRef<str>) -> Self { in name() method
284 self.name = Some(name.as_ref().to_owned()); in name()
[all …]
H A Dlib.rs111 fn name(&self) -> &str; in name() method
133 fn name(&self) -> &str; in name() method
166 fn for_mod(&self, name: &str) -> Vec<syn::Attribute> { in for_mod()
167 generate_attributes(name, &self.module) in for_mod()
170 fn for_struct(&self, name: &str) -> Vec<syn::Attribute> { in for_struct()
171 generate_attributes(name, &self.structure) in for_struct()
229 name: &str, in generate_attributes()
234 .filter(|(matcher, _)| match_name(matcher, name)) in generate_attributes()
318 fn naive_snake_case(name: &str) -> String { in naive_snake_case()
320 let mut it = name.chars().peekable(); in naive_snake_case()
H A Dserver.rs32 let server_service = quote::format_ident!("{}Server", service.name()); in generate_internal()
33 let server_trait = quote::format_ident!("{}", service.name()); in generate_internal()
34 let server_mod = quote::format_ident!("{}_server", naive_snake_case(service.name())); in generate_internal()
218 service.name() in generate_trait()
242 let name = quote::format_ident!("{}", method.name()); in generate_trait_methods() localVariable
268 async fn #name(#self_param, request: tonic::Request<#req_message>) in generate_trait_methods()
277 async fn #name(#self_param, request: tonic::Request<#req_message>) in generate_trait_methods()
300 async fn #name(#self_param, request: tonic::Request<#req_message>) in generate_trait_methods()
318 async fn #name(#self_param, request: tonic::Request<#req_message>) in generate_trait_methods()
382 let ident = quote::format_ident!("{}", method.name()); in generate_methods()
[all …]
/tonic/tonic-reflection/src/server/
H A Dmod.rs70 pub fn with_service_name(mut self, name: impl Into<String>) -> Self { in with_service_name()
72 self.service_names.push(name.into()); in with_service_name()
140 let name = match fd.name.clone() { in new() localVariable
147 if state.files.contains_key(&name) { in new()
152 state.files.insert(name, fd.clone()); in new()
197 let message_name = extract_name(prefix, "message", msg.name.as_ref())?; in process_message()
226 let enum_name = extract_name(prefix, "enum", en.name.as_ref())?; in process_enum()
243 let field_name = extract_name(prefix, "field", field.name.as_ref())?; in process_field()
291 Some(name) => { in extract_name()
293 Ok(name.to_string()) in extract_name()
[all …]
/tonic/examples/src/richer-error/
H A Dserver.rs23 let name = request.into_inner().name; in say_hello() localVariable
29 if name.is_empty() { in say_hello()
31 } else if name.len() > 20 { in say_hello()
52 message: format!("Hello {}!", name), in say_hello()
H A Dserver_vec.rs23 let name = request.into_inner().name; in say_hello() localVariable
29 if name.is_empty() { in say_hello()
31 } else if name.len() > 20 { in say_hello()
52 message: format!("Hello {}!", name), in say_hello()
/tonic/tonic/src/metadata/
H A Dkey.rs43 Ok(name) => { in from_bytes()
44 if !VE::is_valid_key(name.as_str()) { in from_bytes()
49 inner: name, in from_bytes()
103 let name = HeaderName::from_static(src); in from_static() localVariable
104 if !VE::is_valid_key(name.as_str()) { in from_static()
109 inner: name, in from_static()
134 pub(crate) fn unchecked_from_header_name(name: HeaderName) -> Self { in unchecked_from_header_name()
136 inner: name, in unchecked_from_header_name()
195 fn from(name: MetadataKey<VE>) -> Bytes { in from()
196 Bytes::copy_from_slice(name.inner.as_ref()) in from()
/tonic/examples/proto/googleapis/google/pubsub/v1/
H A Dschema.proto56 get: "/v1/{name=projects/*/schemas/*}"
58 option (google.api.method_signature) = "name";
72 delete: "/v1/{name=projects/*/schemas/*}"
74 option (google.api.method_signature) = "name";
117 string name = 1 [(google.api.field_behavior) = REQUIRED];
147 // the schema's resource name.
150 // name constraints.
169 // Required. The name of the schema to get.
171 string name = 1 [ field
221 string name = 1 [ field
[all …]
/tonic/examples/src/routeguide/
H A Ddata.rs7 name: String, field
27 name: feature.name, in load()
/tonic/examples/src/tracing/
H A Dclient.rs19 async fn say_hi(name: String) -> Result<(), Box<dyn std::error::Error>> { in say_hi()
22 let request = tonic::Request::new(HelloRequest { name }); in say_hi()
26 request = %request.get_ref().name in say_hi()
/tonic/interop/
H A DCargo.toml5 name = "interop"
8 name = "client"
12 name = "server"
/tonic/tonic-reflection/proto/
H A Dreflection_v1alpha.proto35 // Find a proto file by the file name.
38 // Find the proto file that declares the given fully-qualified symbol name.
39 // This field should be a fully-qualified symbol name
53 // This field should be a fully-qualified type name. The format is
63 // The type name and extension number sent by the client when requesting
66 // Fully-qualified type name. The format should be <package>.<type>
110 // Full name of the base type, including the package name. The format
126 // Full name of a registered service, including its package name. The format
128 string name = 1; field
H A Dreflection_v1.proto45 // Find a proto file by the file name.
48 // Find the proto file that declares the given fully-qualified symbol name.
49 // This field should be a fully-qualified symbol name
63 // This field should be a fully-qualified type name. The format is
73 // The type name and extension number sent by the client when requesting
76 // Fully-qualified type name. The format should be <package>.<type>
120 // Full name of the base type, including the package name. The format
136 // Full name of a registered service, including its package name. The format
138 string name = 1; field
/tonic/.github/workflows/
H A DCI.yml1 name: CI
82 - name: Check features
84 - name: Check tonic feature powerset
86 - name: Check all targets
94 - name: Resolve MSRV aware dependencies
98 - name: Get MSRV from manifest file
137 name: Interop Tests
147 - name: Run interop tests
150 - name: Run interop tests with Rustls
169 - name: Install cargo-check-external-types
/tonic/examples/proto/googleapis/google/api/
H A Dresource.proto50 // resource's schema, the resource type, and the pattern of the resource name.
126 // For flexible resources, the resource name doesn't contain parent names, but
199 // Optional. The relative resource name pattern associated with this resource
200 // type. The DNS prefix of the full resource name shouldn't be specified here.
216 // the same component name (e.g. "project") refers to IDs of the same
220 // Optional. The field on the resource that designates the resource name
221 // field. If omitted, this is assumed to be "name".
241 // The plural name used in the resource name and permission names, such as
242 // 'projects' for the resource name of 'projects/{project}' and the permission
243 // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
/tonic/examples/src/mock/
H A Dmock.rs51 name: "Tonic".into(), in main()
73 message: format!("Hello {}!", request.into_inner().name), in say_hello()
/tonic/tests/root-crate-path/
H A Dfoo.proto6 optional string name = 1; field
H A DCargo.toml5 name = "root-crate-path"
/tonic/tonic/benches-disabled/proto/helloworld/
H A Dhelloworld.proto29 // The request message containing the user's name.
31 string name = 1; field
/tonic/examples/proto/helloworld/
H A Dhelloworld.proto29 // The request message containing the user's name.
31 string name = 1; field
/tonic/tests/root-crate-path/src/
H A Dmain.rs4 pub name: ::core::option::Option<::prost::alloc::string::String>, field
/tonic/codegen/
H A DCargo.toml2 name = "codegen"

12345