Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rededesign iovec handling #305

Closed
kamalmarhubi opened this issue Mar 10, 2016 · 0 comments · Fixed by #1855
Closed

Rededesign iovec handling #305

kamalmarhubi opened this issue Mar 10, 2016 · 0 comments · Fixed by #1855

Comments

@kamalmarhubi
Copy link
Member

Since closing #263 on using &[u8] and &mut [u8] directly in readv(2) et al, I've been thinking of alternatives.

My current thinking:

  • switch from a type parameter IoVec<T> to a lifetime parameter IoVec<'a>, effectively restricting the type to &'a [u8]
  • add an IoVecMut<'a> for the writeable case, which implements Deref<Target=IoVec<'a>>
  • implement as many conversion traits as we can

I've got a partial implementation that I started on after #304. I think some tidying up in the socket modules might need to happen first though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants