Open SteveLauC opened 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.
AsyncReadRent
AsyncWriteRent
Vec<u8>
Cursor
Describe the solution you'd like
Similar to what Tokio does:
Cursor<&mut Vec<u8>>
Cursor<&mut [u8]>
Cursor<Box<[u8]>>
Cursor<Vec<u8>>
&mut T
Box<T>
&[u8]
Cursor<T>
&mut [T]
Describe alternatives you've considered
No
Additional context
AsyncReadRent has been implemented for &[u8]
This feature is not complex, do you want to have a try?😃
@ihciah is already working on it, based on our discussion in the feishu group.
Is your feature request related to a problem? Please describe.
I want to have
AsyncReadRent
andAsyncWriteRent
implemented for in-memory std buffer types, likeVec<u8>
,Cursor
for testing purposes.Describe the solution you'd like
Similar to what Tokio does:
Vec<u8>
Cursor<&mut Vec<u8>>
Cursor<&mut [u8]>
Cursor<Box<[u8]>>
Cursor<Vec<u8>>
&mut T
Box<T>
&[u8]
Cursor<T>
&mut [T]
Box<T>
Describe alternatives you've considered
No
Additional context
AsyncReadRent
has been implemented for&[u8]