Skip to main content

ProcessorExt

Trait ProcessorExt 

Source
pub trait ProcessorExt<T>: Processor<T>
where Self: 'static, T: 'static,
{ // Provided method fn into_stream<S: Stream<Item = T>>( self, input_stream: S, ) -> ProcessorStream<Self, S, T> where Self: Sized { ... } }
Expand description

Extension trait for Processor that provides convenient methods for Stream processing.

Provided Methods§

Source

fn into_stream<S: Stream<Item = T>>( self, input_stream: S, ) -> ProcessorStream<Self, S, T>
where Self: Sized,

Converts this processor into a Stream that takes an input stream and yields the processor’s output items.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P, T: 'static> ProcessorExt<T> for P
where P: Processor<T> + 'static,