bytedance / monoio

Rust async runtime based on io-uring.
Apache License 2.0
4.03k stars 226 forks source link

Tracking issue: impl `AsyncReadRent` and `AsyncWriteRent` for in-memory std buffer types #310

Open SteveLauC opened 1 month ago

SteveLauC commented 1 month ago

Is your feature request related to a problem? Please describe.

I want to have AsyncReadRent and AsyncWriteRent implemented for in-memory std buffer types, like Vec<u8>, Cursor for testing purposes.

Describe the solution you'd like

Similar to what Tokio does:

Describe alternatives you've considered

No

Additional context

AsyncReadRent has been implemented for &[u8]

Lzzzzzt commented 1 month ago

This feature is not complex, do you want to have a try?😃

SteveLauC commented 4 weeks ago

@ihciah is already working on it, based on our discussion in the feishu group.