| /tonic/tonic/src/transport/ |
| H A D | tls.rs | 4 pub(crate) pem: Vec<u8>, 11 pub(crate) key: Vec<u8>, 18 pub fn from_pem(pem: impl AsRef<[u8]>) -> Self { in from_pem() 24 pub fn get_ref(&self) -> &[u8] { in get_ref() argument 29 pub fn get_mut(&mut self) -> &mut [u8] { in get_mut() argument 34 pub fn into_inner(self) -> Vec<u8> { in into_inner() argument 39 impl AsRef<[u8]> for Certificate { 40 fn as_ref(&self) -> &[u8] { in as_ref() argument 45 impl AsMut<[u8]> for Certificate { 46 fn as_mut(&mut self) -> &mut [u8] { in as_mut() argument [all …]
|
| /tonic/tonic/src/metadata/ |
| H A D | encoding.rs | 23 fn is_empty(value: &[u8]) -> bool; in is_empty() 26 fn from_bytes(value: &[u8]) -> Result<HeaderValue, InvalidMetadataValueBytes>; in from_bytes() 35 fn decode(value: &[u8]) -> Result<Bytes, InvalidMetadataValueBytes>; in decode() 38 fn equals(a: &HeaderValue, b: &[u8]) -> bool; in equals() 81 fn is_empty(value: &[u8]) -> bool { in is_empty() 85 fn from_bytes(value: &[u8]) -> Result<HeaderValue, InvalidMetadataValueBytes> { in from_bytes() 97 fn decode(value: &[u8]) -> Result<Bytes, InvalidMetadataValueBytes> { in decode() 101 fn equals(a: &HeaderValue, b: &[u8]) -> bool { in equals() 121 fn is_empty(value: &[u8]) -> bool { in is_empty() 151 fn decode(value: &[u8]) -> Result<Bytes, InvalidMetadataValueBytes> { in decode() [all …]
|
| H A D | value.rs | 195 pub fn as_encoded_bytes(&self) -> &[u8] { in as_encoded_bytes() argument 251 impl<VE: ValueEncoding> TryFrom<&[u8]> for MetadataValue<VE> { 255 fn try_from(src: &[u8]) -> Result<Self, Self::Error> { in try_from() 291 fn try_from(src: &[u8; N]) -> Result<Self, Self::Error> { in try_from() 328 impl<VE: ValueEncoding> TryFrom<Vec<u8>> for MetadataValue<VE> { 332 fn try_from(src: Vec<u8>) -> Result<Self, Self::Error> { in try_from() 447 pub fn as_bytes(&self) -> &[u8] { in as_bytes() argument 463 pub fn from_bytes(src: &[u8]) -> Self { in from_bytes() 469 impl<VE: ValueEncoding> AsRef<[u8]> for MetadataValue<VE> { 471 fn as_ref(&self) -> &[u8] { in as_ref() argument [all …]
|
| H A D | key.rs | 41 pub fn from_bytes(src: &[u8]) -> Result<Self, InvalidMetadataKey> { in from_bytes() 156 impl<VE: ValueEncoding> AsRef<[u8]> for MetadataKey<VE> { 157 fn as_ref(&self) -> &[u8] { in as_ref() argument
|
| /tonic/tonic-reflection/src/generated/ |
| H A D | reflection_v1_fds.rs | 3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
|
| H A D | reflection_v1alpha1_fds.rs | 3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
|
| /tonic/tonic-health/src/generated/ |
| H A D | grpc_health_v1_fds.rs | 3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
|
| /tonic/tonic-types/src/generated/ |
| H A D | types_fds.rs | 3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
|
| /tonic/tonic/src/codec/ |
| H A D | buffer.rs | 30 fn chunk(&self) -> &[u8] { in chunk() argument 98 fn put_slice(&mut self, src: &[u8]) { in put_slice() argument 103 fn put_bytes(&mut self, val: u8, cnt: usize) { in put_bytes() argument
|
| H A D | mod.rs | 95 std::mem::size_of::<u8>() +
|
| H A D | prost.rs | 318 type Item = Vec<u8>; 335 type Item = Vec<u8>; 370 pub(super) fn new(b: &[u8], partial_len: usize, count: usize) -> Self { in new() argument
|
| H A D | encode.rs | 184 buf: &mut [u8], in finish_encoding() argument 202 buf.put_u8(compression_encoding.is_some() as u8); in finish_encoding()
|
| /tonic/tonic-reflection/src/server/ |
| H A D | mod.rs | 21 encoded_file_descriptor_sets: Vec<&'b [u8]>, 52 encoded_file_descriptor_set: &'b [u8], in register_encoded_file_descriptor_set() argument 124 encoded_file_descriptor_sets: Vec<&[u8]>, in new() argument 252 fn symbol_by_name(&self, symbol: &str) -> Result<Vec<u8>, Status> { in symbol_by_name() argument 266 fn file_by_filename(&self, filename: &str) -> Result<Vec<u8>, Status> { in file_by_filename() argument
|
| /tonic/examples/src/reflection/ |
| H A D | server.rs | 7 pub(crate) const FILE_DESCRIPTOR_SET: &[u8] =
|
| /tonic/tonic/src/transport/service/ |
| H A D | tls.rs | 8 pub(crate) const ALPN_H2: &[u8] = b"h2";
|
| /tonic/tests/integration_tests/src/ |
| H A D | lib.rs | 40 buf: &[u8], in poll_write() argument
|
| /tonic/tonic/src/transport/channel/service/ |
| H A D | io.rs | 43 buf: &[u8], in poll_write() argument
|
| /tonic/tonic-types/src/richer_error/std_messages/ |
| H A D | request_info.rs | 63 let buf: &[u8] = &any.value; in from_any_ref()
|
| H A D | loc_message.rs | 64 let buf: &[u8] = &any.value; in from_any_ref()
|
| H A D | debug_info.rs | 60 let buf: &[u8] = &any.value; in from_any_ref()
|
| H A D | resource_info.rs | 76 let buf: &[u8] = &any.value; in from_any_ref()
|
| H A D | error_info.rs | 76 let buf: &[u8] = &any.value; in from_any_ref()
|
| H A D | retry_info.rs | 75 let buf: &[u8] = &any.value; in from_any_ref()
|
| /tonic/codegen/src/ |
| H A D | main.rs | 124 pub const FILE_DESCRIPTOR_SET: &[u8] = &[#(#fds_raw),*]; in write_fds()
|
| /tonic/tonic-reflection/tests/ |
| H A D | server.rs | 17 pub(crate) fn get_encoded_reflection_service_fd() -> Vec<u8> { in get_encoded_reflection_service_fd()
|