Skip to main content

wrap_progress_stream

Function wrap_progress_stream 

Source
pub fn wrap_progress_stream<T, P>(
    stream: impl Stream<Item = Progress<T, P>> + Send + 'static,
    content_type: &'static str,
    provenance: Vec<String>,
) -> PlexusStream
where T: Serialize + Send + 'static, P: Serialize + Send + 'static,
Expand description

-> impl Stream<Item = Progress<T, P>>: Update(p) → a progress frame carrying p; Item(t) → a data frame carrying t. Then done.