-
Notifications
You must be signed in to change notification settings - Fork 22
Prep methods for additional io_uring features #32
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
Conversation
|
Probably I can't review this until after the new year, but superficially its exciting. Thanks :) |
|
Ahh I see now that this was supposed to supercede #26. Reviewing fully now |
withoutboats
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this all looks great! Thanks so much, I'll be excited to add it. Only changes I propose are small stylistic ones.
Sorry again for letting it sit a month!
| } | ||
| } | ||
|
|
||
| pub unsafe fn as_socket_addr(&self) -> io::Result<SockAddr> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to make sure I have a correct understanding of this API: this function is safe to call after as the prep_accept SQE you passed this to has completed, and calling it before it has completed would be incorrect. Is that right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely right.
| let mut ring = iou::IoUring::new(2)?; | ||
| let (read, _write) = net::UnixStream::pair()?; | ||
| let uname = nix::sys::utsname::uname(); | ||
| let version = semver::Version::parse(uname.release()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Conflicts: # Cargo.toml # src/lib.rs # src/sqe.rs # tests/poll.rs
|
Merged into master! Thanks! |
@withoutboats need your opinion about my tryout with nix types