Function destream_json::de::try_decode [−][src]
pub async fn try_decode<E: Display, S: Stream<Item = Result<Bytes, E>> + Send + Unpin, T: FromStream>(
context: T::Context,
source: S
) -> Result<T, Error>
Expand description
Decode the given JSON-encoded stream of bytes into an instance of T
using the given context.