Home
last modified time | relevance | path

Searched refs:count (Results 1 – 3 of 3) sorted by relevance

/tonic/tests/disable_comments/tests/
H A Ddisable_comments.rs8 let mut count = 0_usize; in test() localVariable
12 count += 1; in test()
14 assert_eq!(count, 2 + 3 + 3); // message: 2, client: 3, server: 3 in test()
/tonic/tonic/src/codec/
H A Dprost.rs366 count: usize, field
370 pub(super) fn new(b: &[u8], partial_len: usize, count: usize) -> Self { in new()
374 count, in new()
388 let should_send = self.count % 2 == 0; in poll_frame()
391 let count = self.count; in poll_frame() localVariable
396 .split_to(if count == 0 { partial_len } else { data_len }); in poll_frame()
403 self.count += 1; in poll_frame()
/tonic/tonic/benches/
H A Ddecode.rs29 let mut count = 0; localVariable
32 count += 1;
35 assert_eq!(count, $message_count);