Type Alias netapp::stream::ByteStream
source · pub type ByteStream = Pin<Box<dyn Stream<Item = Packet> + Send + Sync>>;
Expand description
A stream of bytes (click to read more).
When sent through Netapp, the Vec may be split in smaller chunk in such a way consecutive Vec may get merged, but Vec and error code may not be reordered
Items sent in the ByteStream may be errors of type std::io::Error
.
An error indicates the end of the ByteStream: a reader should no longer read
after recieving an error, and a writer should stop writing after sending an error.
Aliased Type§
struct ByteStream { /* private fields */ }