Home
last modified time | relevance | path

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

/tonic/tonic/src/transport/channel/
H A Dmod.rs122 pub fn balance_channel<K>(capacity: usize) -> (Self, Sender<Change<K, Endpoint>>) in balance_channel()
126 Self::balance_channel_with_executor(capacity, SharedExec::tokio()) in balance_channel()
135 capacity: usize, in balance_channel_with_executor()
142 let (tx, rx) = channel(capacity); in balance_channel_with_executor()
/tonic/tonic/src/codec/
H A Dcompression.rs219 let capacity = ((len / buffer_growth_interval) + 1) * buffer_growth_interval; in compress() localVariable
220 out_buf.reserve(capacity); in compress()
270 let capacity = in decompress() localVariable
272 out_buf.reserve(capacity); in decompress()
/tonic/tonic/src/metadata/
H A Dmap.rs291 pub fn with_capacity(capacity: usize) -> MetadataMap { in with_capacity()
293 headers: http::HeaderMap::with_capacity(capacity), in with_capacity()
404 pub fn capacity(&self) -> usize { in capacity() method
405 self.headers.capacity() in capacity()