Home
last modified time | relevance | path

Searched refs:u8 (Results 1 – 25 of 37) sorted by relevance

12

/tonic/tonic/src/transport/
H A Dtls.rs4 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 Dencoding.rs23 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 Dvalue.rs195 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 Dkey.rs41 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 Dreflection_v1_fds.rs3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
H A Dreflection_v1alpha1_fds.rs3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
/tonic/tonic-health/src/generated/
H A Dgrpc_health_v1_fds.rs3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
/tonic/tonic-types/src/generated/
H A Dtypes_fds.rs3 pub const FILE_DESCRIPTOR_SET: &[u8] = &[
/tonic/tonic/src/codec/
H A Dbuffer.rs30 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 Dmod.rs95 std::mem::size_of::<u8>() +
H A Dprost.rs318 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 Dencode.rs184 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 Dmod.rs21 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 Dserver.rs7 pub(crate) const FILE_DESCRIPTOR_SET: &[u8] =
/tonic/tonic/src/transport/service/
H A Dtls.rs8 pub(crate) const ALPN_H2: &[u8] = b"h2";
/tonic/tests/integration_tests/src/
H A Dlib.rs40 buf: &[u8], in poll_write() argument
/tonic/tonic/src/transport/channel/service/
H A Dio.rs43 buf: &[u8], in poll_write() argument
/tonic/tonic-types/src/richer_error/std_messages/
H A Drequest_info.rs63 let buf: &[u8] = &any.value; in from_any_ref()
H A Dloc_message.rs64 let buf: &[u8] = &any.value; in from_any_ref()
H A Ddebug_info.rs60 let buf: &[u8] = &any.value; in from_any_ref()
H A Dresource_info.rs76 let buf: &[u8] = &any.value; in from_any_ref()
H A Derror_info.rs76 let buf: &[u8] = &any.value; in from_any_ref()
H A Dretry_info.rs75 let buf: &[u8] = &any.value; in from_any_ref()
/tonic/codegen/src/
H A Dmain.rs124 pub const FILE_DESCRIPTOR_SET: &[u8] = &[#(#fds_raw),*]; in write_fds()
/tonic/tonic-reflection/tests/
H A Dserver.rs17 pub(crate) fn get_encoded_reflection_service_fd() -> Vec<u8> { in get_encoded_reflection_service_fd()

12