Function destream_json::de::decode[][src]

pub async fn decode<S: Stream<Item = Bytes> + Send + Unpin, T: FromStream>(
    context: T::Context,
    source: S
) -> Result<T, Error>

Decode the given JSON-encoded stream of bytes into an instance of T using the given context.