Skip to main content

clock_convert

Function clock_convert 

Source
pub fn clock_convert<F>(source: Stream, convert: F) -> ClockConvertedStream
where F: Fn(&StreamItem) -> Result<(Vec<Tick>, Vec<Diagnostic>)> + Send + Sync + 'static,
Expand description

Rewrites each packet’s ticks via convert, collecting its diagnostics.

For every packet, convert returns the replacement ticks and any diagnostics describing the conversion; the diagnostics are gathered into the returned ClockConvertedStream.