pub trait StreamBufferExt:
Stream<Item = String>
+ Sized
+ Unpin {
// Provided methods
fn with_buffer(self, config: BufferConfig) -> BufferedStream<Self> { ... }
fn with_buffer_default(self) -> BufferedStream<Self> { ... }
}Expand description
Extension trait for streams to add buffering
Provided Methods§
Sourcefn with_buffer(self, config: BufferConfig) -> BufferedStream<Self>
fn with_buffer(self, config: BufferConfig) -> BufferedStream<Self>
Add buffering to the stream
Sourcefn with_buffer_default(self) -> BufferedStream<Self>
fn with_buffer_default(self) -> BufferedStream<Self>
Add buffering with default configuration
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.