Skip to content

Add the ability to safely read into ReadBuf #3509

Open
@notgull

Description

@notgull

Is your feature request related to a problem? Please describe.
It is impossible to write an implementation of hyper::rt::Read because ReadBufCursor cannot be written to safely.

Describe the solution you'd like
Have a method that initializes the read buffer by zeroing it and then returning an &mut [u8] that can be filled safely. E.g. this.

Describe alternatives you've considered
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions