In Rust and with a Stream that produces Vec<u8>, how can I consume the result and build a new stream of u8?
For example a stream that looks like:
let a: Vec<Vec<u8>> = vec![vec![1,2,3], vec![4,5,6]];
let my_stream = futures::stream::iter(a);
I would like to consume and map it to end up with:
assert_eq!(vec![1,2,3,4,5,6], my_stream.collect::<Vec<_>>().await);