Home
last modified time | relevance | path

Searched refs:with_capacity (Results 1 – 8 of 8) sorted by relevance

/tonic/tonic/src/codec/
H A Dbuffer.rs114 let mut payload = BytesMut::with_capacity(100); in decode_buf()
136 let mut bytes = BytesMut::with_capacity(100); in encode_buf()
H A Dencode.rs43 let buf = BytesMut::with_capacity(buffer_settings.buffer_size); in new()
53 BytesMut::with_capacity(buffer_settings.buffer_size) in new()
H A Ddecode.rs136 buf: BytesMut::with_capacity(buffer_size), in new()
/tonic/tonic-web/src/
H A Dcall.rs107 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()
/tonic/tonic-types/src/richer_error/
H A Dmod.rs44 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()
/tonic/tests/web/tests/
H A Dgrpc_web.rs93 let mut buf = BytesMut::with_capacity(1024); in encode_body()
/tonic/tonic/src/metadata/
H A Dmap.rs241 MetadataMap::with_capacity(0) in new()
291 pub fn with_capacity(capacity: usize) -> MetadataMap { in with_capacity() method
293 headers: http::HeaderMap::with_capacity(capacity), in with_capacity()
/tonic/tonic/src/
H A Dstatus.rs511 let mut header_map = HeaderMap::with_capacity(3 + self.metadata.len()); in to_header_map()