pub trait VortexRead {
// Required method
fn read_bytes(&mut self, len: u64) -> impl Future<Output = Result<Bytes>>;
}Expand description
An asynchronous streaming reader.
Implementations expose data via the asynchronous read_bytes, which
will fill the exact number of bytes and advance the stream.
If the exact number of bytes is not available from the stream, an
UnexpectedEof error is returned.
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.