Skip to content

buf-list 1.0.2

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Apr 20:03
· 6 commits to main since this release

Added

  • A new type Cursor which wraps a BufList or &BufList, and implements Seek, Read and BufRead.
  • BufList implements From<T> for any T that can be converted to Bytes. This creates a
    BufList with a single chunk.
  • BufList::get_chunk returns the chunk at the provided index.
  • New optional features:
    • tokio1: makes Cursor implement tokio's AsyncSeek, AsyncRead and AsyncBufRead
    • futures03: makes Cursor implement futures's AsyncSeek, AsyncRead and AsyncBufRead.