Skip to content

Add AsyncRead::poll_read_buf and AsyncWrite::poll_write_buf #1818

@taiki-e

Description

@taiki-e

Add the methods mentioned in #1688.

Another change I'm thinking about is to add poll_{read,write}_buf like tokio's same name methods (poll_read_buf, poll_write_buf). This makes tokio::io::Async* and futures::io::Async* almost identical, so that tokio probably can use the futures's io traits. (Stabilizing this is probably blocked by bytes 0.5 release, but since poll_{read,write}_buf have default implementations, it could be made to work well by adding a feature gate. )

Probably blocked by bytes 0.5-alpha.

cc tokio-rs/tokio#1297

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions