Skip to content

Commit

Permalink
ci, poll
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingoujAtDevolution committed Jan 25, 2024
1 parent 903db66 commit 13b09ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,13 @@ impl EventExtra {
pub fn is_pri(&self) -> bool {
self.flags.contains(PollFlags::PRI)
}

#[inline]
pub fn is_connect_failed(&self) -> bool {
// need reviewer's special attention, as I do not have access to a system that supports this
// this is a guess based on the documentation of `poll()`
self.flags.contains(PollFlags::ERR)
}
}

fn cvt_mode_as_remove(mode: PollMode) -> io::Result<bool> {
Expand Down

0 comments on commit 13b09ae

Please sign in to comment.