Home
last modified time | relevance | path

Searched refs:as_str (Results 1 – 6 of 6) sorted by relevance

/tonic/tonic/src/metadata/
H A Dkey.rs44 if !VE::is_valid_key(name.as_str()) { in from_bytes()
104 if !VE::is_valid_key(name.as_str()) { in from_static()
118 pub fn as_str(&self) -> &str { in as_str() method
119 self.inner.as_str() in as_str()
152 self.as_str() in as_ref()
158 self.as_str().as_bytes() in as_ref()
164 self.as_str() in borrow()
170 fmt::Debug::fmt(self.as_str(), fmt) in fmt()
176 fmt::Display::fmt(self.as_str(), fmt) in fmt()
290 BinaryMetadataKey::from_bytes(b"abc-bin").unwrap().as_str(), in test_from_bytes_binary()
[all …]
H A Dmap.rs2304 if !VE::is_valid_key(self.as_str()) { in get()
2308 .get(self.as_str()) in get()
2315 if !VE::is_valid_key(self.as_str()) { in get_mut()
2319 .get_mut(self.as_str()) in get_mut()
2354 .remove(self.as_str()) in remove()
2369 .get(self.as_str()) in get()
2380 .get_mut(self.as_str()) in get_mut()
2415 .remove(self.as_str()) in remove()
2548 if key.as_str() == "x-word" { in test_iter_categorizes_ascii_entries()
2589 if key.as_str() == "x-word" { in test_iter_mut_categorizes_ascii_entries()
[all …]
/tonic/tonic-types/src/richer_error/
H A Dmod.rs764 match any.type_url.as_str() { in check_error_details()
810 match any.type_url.as_str() { in check_error_details_vec()
854 if any.type_url.as_str() == RetryInfo::TYPE_URL { in get_details_retry_info()
866 if any.type_url.as_str() == DebugInfo::TYPE_URL { in get_details_debug_info()
878 if any.type_url.as_str() == QuotaFailure::TYPE_URL { in get_details_quota_failure()
890 if any.type_url.as_str() == ErrorInfo::TYPE_URL { in get_details_error_info()
914 if any.type_url.as_str() == BadRequest::TYPE_URL { in get_details_bad_request()
926 if any.type_url.as_str() == RequestInfo::TYPE_URL { in get_details_request_info()
938 if any.type_url.as_str() == ResourceInfo::TYPE_URL { in get_details_resource_info()
950 if any.type_url.as_str() == Help::TYPE_URL { in get_details_help()
[all …]
/tonic/examples/src/dynamic/
H A Dserver.rs35 let enabled = args.iter().any(|arg| arg.as_str() == "echo"); in init_echo()
62 let enabled = args.iter().any(|arg| arg.as_str() == "greeter"); in init_greeter()
/tonic/tonic/src/codec/
H A Dcompression.rs51 value.put_slice(encoding.as_str().as_bytes()); in into_accept_encoding_header_value()
182 pub(crate) fn as_str(self) -> &'static str { in as_str() method
195 http::HeaderValue::from_static(self.as_str()) in into_header_value()
201 f.write_str(self.as_str()) in fmt()
/tonic/tonic-health/src/
H A Dserver.rs123 let service_name = request.get_ref().service.as_str(); in check()
137 let service_name = request.get_ref().service.as_str(); in watch()