Skip to main content

map

Function map 

Source
pub fn map<F>(source: Stream, f: F) -> Stream
where F: Fn(StreamItem) -> Result<StreamItem> + Send + Sync + 'static,
Expand description

Returns a stream that applies f to every packet of source.