Function destream_json::de::read_from [−][src]
pub async fn read_from<R: AsyncReadExt + Send + Unpin, T: FromStream>(
context: T::Context,
source: R
) -> Result<T, Error>
Decode the given JSON-encoded stream of bytes into an instance of T
using the given context.