Skip to content

Possibly refactor AsyncBufRead #2428

@Darksonn

Description

@Darksonn

In the spirit of this RFC, we should consider refactoring AsyncBufRead in a similar way to allow unlimited peeking.

It is worth noting that this removes some types' ability to implement the trait without complicating the types. This is the case for e.g. StreamReader. That said, as is, the trait is more or less only useful for read_line, and other single-byte-separated splits.

Metadata

Metadata

Assignees

Labels

A-tokioArea: The main tokio crateC-musingCategory: musings about a better worldM-ioModule: tokio/io

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions