Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 25 of 29) sorted by relevance

12

/tonic/tonic/src/metadata/
H A Dencoding.rs35 fn decode(value: &[u8]) -> Result<Bytes, InvalidMetadataValueBytes>; in decode() method
97 fn decode(value: &[u8]) -> Result<Bytes, InvalidMetadataValueBytes> { in decode() method
141 if crate::util::base64::STANDARD.decode(value).is_err() { in from_static()
151 fn decode(value: &[u8]) -> Result<Bytes, InvalidMetadataValueBytes> { in decode() method
153 .decode(value) in decode()
159 if let Ok(decoded) = crate::util::base64::STANDARD.decode(a.as_bytes()) { in equals()
167 match (Self::decode(a.as_bytes()), Self::decode(b.as_bytes())) { in values_equal()
175 if let Ok(decoded) = Self::decode(value.as_bytes()) { in fmt()
/tonic/tonic/src/codec/
H A Dmod.rs8 mod decode; module
18 pub use self::decode::Streaming;
153 fn decode(&mut self, src: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error>; in decode() method
H A Dprost.rs131 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode() method
132 let item = Message::decode(buf) in decode()
167 async fn decode() { in decode() function
338 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode() method
H A Ddecode.rs374 Some(mut decode_buf) => match self.decoder.decode(&mut decode_buf)? { in decode_chunk()
/tonic/tonic-reflection/src/
H A Dlib.rs37 prost_types::FileDescriptorSet::decode(FILE_DESCRIPTOR_SET_V1ALPHA).unwrap(); in v1alpha_file_descriptor_set_is_valid()
42 prost_types::FileDescriptorSet::decode(FILE_DESCRIPTOR_SET_V1).unwrap(); in v1_file_descriptor_set_is_valid()
/tonic/tonic-types/src/richer_error/
H A Dmod.rs607 let status = pb::Status::decode(self.details())?; in check_error_details()
617 let status = pb::Status::decode(self.details())?; in check_error_details_vec()
627 let status = pb::Status::decode(self.details()).ok()?; in get_details_retry_info()
633 let status = pb::Status::decode(self.details()).ok()?; in get_details_debug_info()
639 let status = pb::Status::decode(self.details()).ok()?; in get_details_quota_failure()
645 let status = pb::Status::decode(self.details()).ok()?; in get_details_error_info()
651 let status = pb::Status::decode(self.details()).ok()?; in get_details_precondition_failure()
657 let status = pb::Status::decode(self.details()).ok()?; in get_details_bad_request()
663 let status = pb::Status::decode(self.details()).ok()?; in get_details_request_info()
669 let status = pb::Status::decode(self.details()).ok()?; in get_details_resource_info()
[all …]
/tonic/tonic-types/src/
H A Dlib.rs165 prost_types::FileDescriptorSet::decode(FILE_DESCRIPTOR_SET).unwrap(); in file_descriptor_set_is_valid()
/tonic/tonic-health/src/
H A Dlib.rs35 prost_types::FileDescriptorSet::decode(FILE_DESCRIPTOR_SET).unwrap(); in file_descriptor_set_is_valid()
/tonic/tests/web/tests/
H A Dgrpc_web.rs143 .decode(body) in decode_body()
150 let msg = Output::decode(&mut body.split_to(len as usize)).expect("decode"); in decode_body()
/tonic/tonic-types/src/richer_error/std_messages/
H A Drequest_info.rs64 let req_info = pb::RequestInfo::decode(buf)?; in from_any_ref()
H A Dloc_message.rs65 let loc_message = pb::LocalizedMessage::decode(buf)?; in from_any_ref()
H A Ddebug_info.rs61 let debug_info = pb::DebugInfo::decode(buf)?; in from_any_ref()
H A Dresource_info.rs77 let res_info = pb::ResourceInfo::decode(buf)?; in from_any_ref()
H A Derror_info.rs77 let error_info = pb::ErrorInfo::decode(buf)?; in from_any_ref()
H A Dretry_info.rs76 let retry_info = pb::RetryInfo::decode(buf)?; in from_any_ref()
H A Dhelp.rs119 let help = pb::Help::decode(buf)?; in from_any_ref()
H A Dbad_request.rs123 let bad_req = pb::BadRequest::decode(buf)?; in from_any_ref()
H A Dquota_failure.rs120 let quota_failure = pb::QuotaFailure::decode(buf)?; in from_any_ref()
H A Dprec_failure.rs143 let precondition_failure = pb::PreconditionFailure::decode(buf)?; in from_any_ref()
/tonic/examples/src/json-codec/
H A Dcommon.rs42 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode() method
/tonic/tonic-reflection/tests/
H A Dserver.rs19 prost_types::FileDescriptorSet::decode(FILE_DESCRIPTOR_SET) in get_encoded_reflection_service_fd()
/tonic/tonic/benches/
H A Ddecode.rs106 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode() method
/tonic/tonic/
H A DCargo.toml145 name = "decode"
/tonic/tonic-reflection/src/server/
H A Dmod.rs129 file_descriptor_sets.push(FileDescriptorSet::decode(encoded)?); in new()
/tonic/tonic-web/src/
H A Dcall.rs155 .decode(self.as_mut().project().buf.split_to(index)) in decode_chunk()

12