Skip to main content

tap

Function tap 

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

Returns a stream that runs f on each packet as a side effect, unchanged.