pub async fn from_async_reader<R, T>(reader: &mut R) -> Result<T>where
R: AsyncRead + Unpin,
T: DeserializeOwned + 'static,Expand description
Drain the supplied reader to end-of-stream, then parse the
buffered bytes as a single YAML document into T.
Uses the default ParserConfig; pair with
from_async_reader_with_config to pass custom limits.
ยงErrors
Returns the underlying Error from either the I/O drain
(including reads that exceed ParserConfig::max_document_length)
or the parse step.