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

Split Event::is_hup into is_hup and is_read_hup and refer to OS selector docs #1037

Merged
merged 7 commits into from
Jul 21, 2019

Conversation

Thomasdezeeuw
Copy link
Collaborator

@Thomasdezeeuw Thomasdezeeuw commented Jul 16, 2019

This doesn't mention Windows, I think the Windows rewrite should be merged first.

Updates #941.
Closes #1040.

src/event/event.rs Outdated Show resolved Hide resolved
This was referenced Jul 17, 2019
@Thomasdezeeuw
Copy link
Collaborator Author

Rebased on master.

@Thomasdezeeuw Thomasdezeeuw changed the title Add docs about which flags are checked in Event Split Event::is_hup into is_hup and is_read_hup and refer to OS selector docs Jul 19, 2019
src/event/event.rs Outdated Show resolved Hide resolved
/// | [OS selector] | Flag(s) checked |
/// |---------------|-----------------|
/// | [epoll] | `EPOLLRDHUP` |
/// | [kqueue] | `EV_EOF` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is: EVFILT_READ with EV_EOF.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right but doesn't the read part of the method name imply that? I'm fine with adding it though.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some doc thoughts inline.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick thing I missed.

src/sys/unix/kqueue.rs Outdated Show resolved Hide resolved
Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

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

Successfully merging this pull request may close these issues.

Add a rdhup event.
2 participants