Skip to main content

from_async_reader_multi

Function from_async_reader_multi 

Source
pub async fn from_async_reader_multi<R, T>(reader: &mut R) -> Result<Vec<T>>
where R: AsyncRead + Unpin, T: DeserializeOwned + 'static,
Expand description

Drain the reader and parse every ----separated document into Vec<T> using the default ParserConfig.

Pair with from_async_reader_multi_with_config when the caller needs custom limits (it is the version most production services should pick).

ยงErrors

Returns the underlying Error from either the I/O drain or the parse step.