pub fn map<F>(source: Stream, f: F) -> Streamwhere F: Fn(StreamItem) -> Result<StreamItem> + Send + Sync + 'static,
Returns a stream that applies f to every packet of source.
f
source