chomp
chomp copied to clipboard
Improving the `buffer` module
Rename module to stream, since it provides tools to deal with streaming data, not just buffering.
Renames
stream::Source<-data_source::DataSourcestream::IteratorSource<-data_source::IteratorDataSourcestream::ReadSource<-data_source::ReadDataSourcestream::FixedSizeBufferstream::GrowingBufferstream::BufferedInput<-InputBufstream::Slice<-SliceStreamstream::BufferedSource<-Sourcestream::Error<-StreamErrorstream::Bufferstream::Stream
Fixes/Updates
Source::readshould either beunsafeor should always be provided with zeroed memory.Erroronly useRetrywhere the stream itself will attempt to refill before trying the parser again, andIncompleteshould be used otherwise if the parser requires more data.- Look at how Tokio manages buffers and see if we can get that to mesh with Chomp