Home
last modified time | relevance | path

Searched refs:ProtobufResult (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/protobuf/src/
Dcoded_output_stream.rs9 use crate::ProtobufResult;
22 fn with_coded_output_stream<T, F>(self, cb: F) -> ProtobufResult<T> in with_coded_output_stream()
24 F: FnOnce(&mut CodedOutputStream) -> ProtobufResult<T>; in with_coded_output_stream()
28 fn with_coded_output_stream<T, F>(self, cb: F) -> ProtobufResult<T> in with_coded_output_stream()
30 F: FnOnce(&mut CodedOutputStream) -> ProtobufResult<T>, in with_coded_output_stream()
40 fn with_coded_output_stream<T, F>(mut self, cb: F) -> ProtobufResult<T> in with_coded_output_stream()
42 F: FnOnce(&mut CodedOutputStream) -> ProtobufResult<T>, in with_coded_output_stream()
52 pub fn with_coded_output_stream_to_bytes<F>(cb: F) -> ProtobufResult<Vec<u8>> in with_coded_output_stream_to_bytes()
54 F: FnOnce(&mut CodedOutputStream) -> ProtobufResult<()>, in with_coded_output_stream_to_bytes() argument
136 fn refresh_buffer(&mut self) -> ProtobufResult<()> { in refresh_buffer() argument
[all …]
Dcoded_input_stream.rs19 use crate::error::ProtobufResult;
84 pub(crate) fn incr_recursion(&mut self) -> ProtobufResult<()> { in incr_recursion() argument
111 pub fn read(&mut self, buf: &mut [u8]) -> ProtobufResult<()> { in read() argument
121 fn read_raw_callerche_bytes(&mut self, count: usize) -> ProtobufResult<Bytes> { in read_raw_callerche_bytes()
127 pub fn read_raw_byte(&mut self) -> ProtobufResult<u8> { in read_raw_byte()
132 pub fn push_limit(&mut self, limit: u64) -> ProtobufResult<u64> { in push_limit()
143 pub fn eof(&mut self) -> ProtobufResult<bool> { in eof()
150 pub fn check_eof(&mut self) -> ProtobufResult<()> { in check_eof() argument
158 fn read_raw_varint64_slow(&mut self) -> ProtobufResult<u64> { in read_raw_varint64_slow()
177 pub fn read_raw_varint64(&mut self) -> ProtobufResult<u64> { in read_raw_varint64()
[all …]
Dmessage.rs17 use crate::error::ProtobufResult;
33 fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>; in merge_from() argument
36 fn parse_from(is: &mut CodedInputStream) -> ProtobufResult<Self> in parse_from()
50 fn write_to_with_cached_sizes(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>; in write_to_with_cached_sizes() argument
61 fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()> { in write_to() argument
74 fn write_length_delimited_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()> { in write_length_delimited_to() argument
86 fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()> { in write_length_delimited_to_vec() argument
94 fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()> { in merge_from_bytes() argument
101 fn parse_from_reader(reader: &mut dyn Read) -> ProtobufResult<Self> in parse_from_reader()
112 fn parse_from_bytes(bytes: &[u8]) -> ProtobufResult<Self> in parse_from_bytes()
[all …]
Dtypes.rs14 use crate::error::ProtobufResult;
32 fn read(is: &mut CodedInputStream) -> ProtobufResult<Self::Value>; in read()
73 ) -> ProtobufResult<()>; in write_with_cached_size() argument
128 fn read(is: &mut CodedInputStream) -> ProtobufResult<f32> { in read()
149 ) -> ProtobufResult<()> { in write_with_cached_size() argument
161 fn read(is: &mut CodedInputStream) -> ProtobufResult<f64> { in read()
182 ) -> ProtobufResult<()> { in write_with_cached_size() argument
194 fn read(is: &mut CodedInputStream) -> ProtobufResult<i32> { in read()
210 ) -> ProtobufResult<()> { in write_with_cached_size() argument
226 fn read(is: &mut CodedInputStream) -> ProtobufResult<i64> { in read()
[all …]
Drt.rs17 use crate::error::ProtobufResult;
264 ) -> ProtobufResult<()> { in read_repeated_int32_into() argument
280 ) -> ProtobufResult<()> { in read_repeated_int64_into() argument
296 ) -> ProtobufResult<()> { in read_repeated_uint32_into() argument
312 ) -> ProtobufResult<()> { in read_repeated_uint64_into() argument
328 ) -> ProtobufResult<()> { in read_repeated_sint32_into() argument
344 ) -> ProtobufResult<()> { in read_repeated_sint64_into() argument
360 ) -> ProtobufResult<()> { in read_repeated_fixed32_into() argument
376 ) -> ProtobufResult<()> { in read_repeated_fixed64_into() argument
392 ) -> ProtobufResult<()> { in read_repeated_sfixed32_into() argument
[all …]
Dany.rs5 use crate::ProtobufResult;
35 pub fn pack<M: Message>(message: &M) -> ProtobufResult<Any> { in pack()
55 pub fn pack_dyn(message: &dyn Message) -> ProtobufResult<Any> { in pack_dyn()
62 ) -> ProtobufResult<Any> { in pack_with_type_url_prefix()
89 pub fn unpack<M: Message>(&self) -> ProtobufResult<Option<M>> { in unpack()
105 ) -> ProtobufResult<Option<Box<dyn Message>>> { in unpack_dyn()
Dbuf_read_iter.rs20 use crate::ProtobufResult;
147 pub fn push_limit(&mut self, limit: u64) -> ProtobufResult<u64> { in push_limit()
201 pub fn eof(&mut self) -> ProtobufResult<bool> { in eof()
210 pub fn read_byte(&mut self) -> ProtobufResult<u8> { in read_byte()
230 fn read_to_vec(&mut self, vec: &mut Vec<u8>, max: usize) -> ProtobufResult<usize> { in read_to_vec()
245 pub fn read_exact_to_vec(&mut self, count: usize, target: &mut Vec<u8>) -> ProtobufResult<()> { in read_exact_to_vec() argument
287 pub fn read_exact_bytes(&mut self, len: usize) -> ProtobufResult<Bytes> { in read_exact_bytes()
327 pub fn read(&mut self, buf: &mut [u8]) -> ProtobufResult<usize> { in read()
338 pub fn read_exact(&mut self, buf: &mut [u8]) -> ProtobufResult<()> { in read_exact() argument
377 fn do_fill_buf(&mut self) -> ProtobufResult<()> { in do_fill_buf() argument
[all …]
Dplugin.rs147 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
204 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
472 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
519 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
746 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
790 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1068 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1114 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Ddescriptor.rs81 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
109 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
610 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
709 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1247 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1336 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1620 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1668 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1836 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1877 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
[all …]
Dlib.rs21 pub use crate::error::ProtobufResult;
Derror.rs11 pub type ProtobufResult<T> = Result<T, ProtobufError>; typedef
/external/rust/crates/protobuf/src/well_known_types_util/
Dany.rs4 use crate::ProtobufResult;
34 pub fn pack<M: Message>(message: &M) -> ProtobufResult<Any> { in pack()
54 pub fn pack_dyn(message: &dyn Message) -> ProtobufResult<Any> { in pack_dyn()
61 ) -> ProtobufResult<Any> { in pack_with_type_url_prefix()
88 pub fn unpack<M: Message>(&self) -> ProtobufResult<Option<M>> { in unpack()
104 ) -> ProtobufResult<Option<Box<dyn Message>>> { in unpack_dyn()
/external/rust/crates/protobuf/src/well_known_types/
Dwrappers.rs66 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
97 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
221 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
252 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
376 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
407 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
531 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
562 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
686 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
717 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
[all …]
Dempty.rs49 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
70 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dsource_context.rs77 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
104 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dfield_mask.rs76 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
103 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dduration.rs82 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
123 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dtimestamp.rs82 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
123 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dstruct_pb.rs76 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
101 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
451 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
532 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
724 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
752 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dany.rs104 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
137 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dapi.rs252 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
319 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
649 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
721 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
939 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
972 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
Dtype_pb.rs220 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
280 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
658 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
752 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1246 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1300 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1524 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1568 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument
1762 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { in merge_from() argument
1796 …e_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { in write_to_with_cached_sizes() argument