pub trait StreamReader: Stream<Item = StreamResult<Self::Output>> {
type Output;
type Info;
// Required methods
fn info(&self) -> &Self::Info;
fn read_all(self) -> impl Future<Output = StreamResult<Self::Output>> + Send;
}Expand description
Reader for an incoming data stream.
The stream being read from is kept open as long as its reader exists; dropping the reader will close the stream.
Required Associated Types§
Required Methods§
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.