Searched refs:with_capacity (Results 1 – 8 of 8) sorted by relevance
114 let mut payload = BytesMut::with_capacity(100); in decode_buf()136 let mut bytes = BytesMut::with_capacity(100); in encode_buf()
43 let buf = BytesMut::with_capacity(buffer_settings.buffer_size); in new()53 BytesMut::with_capacity(buffer_settings.buffer_size) in new()
136 buf: BytesMut::with_capacity(buffer_size), in new()
107 buf: BytesMut::with_capacity(match (direction, encoding) { in new_client()111 decoded: BytesMut::with_capacity(match direction { in new_client()125 buf: BytesMut::with_capacity(match (direction, encoding) { in new()129 decoded: BytesMut::with_capacity(0), in new()451 let mut frame = BytesMut::with_capacity(len + FRAME_HEADER_SIZE); in make_trailers_frame()
44 let mut buf = BytesMut::with_capacity(status.encoded_len()); in gen_details_bytes()492 let mut conv_details: Vec<Any> = Vec::with_capacity(10); in with_error_details_and_metadata()807 let mut details: Vec<ErrorDetail> = Vec::with_capacity(self.details.len()); in check_error_details_vec()
93 let mut buf = BytesMut::with_capacity(1024); in encode_body()
241 MetadataMap::with_capacity(0) in new()291 pub fn with_capacity(capacity: usize) -> MetadataMap { in with_capacity() method293 headers: http::HeaderMap::with_capacity(capacity), in with_capacity()
511 let mut header_map = HeaderMap::with_capacity(3 + self.metadata.len()); in to_header_map()