LinesStreamExt

Trait LinesStreamExt 

Source
pub trait LinesStreamExt: Stream<Item = Result<String, Error>> + Sized {
    // Provided method
    fn lines(self) -> BoxStream<'static, Result<String>>
       where Self: Send + 'static { ... }
}
Expand description

Extension trait for converting chunked string streams to line streams.

Provided Methods§

Source

fn lines(self) -> BoxStream<'static, Result<String>>
where Self: Send + 'static,

Convert a chunked string stream to a line stream.

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<S> LinesStreamExt for S
where S: Stream<Item = Result<String, Error>>,