Searched refs:capacity (Results 1 – 3 of 3) sorted by relevance
122 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()
219 let capacity = ((len / buffer_growth_interval) + 1) * buffer_growth_interval; in compress() localVariable220 out_buf.reserve(capacity); in compress()270 let capacity = in decompress() localVariable272 out_buf.reserve(capacity); in decompress()
291 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() method405 self.headers.capacity() in capacity()