We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9edda3 commit 2b0c991Copy full SHA for 2b0c991
src/sys/epoll.rs
@@ -4,7 +4,7 @@ use std::os::unix::io::RawFd;
4
5
bitflags!(
6
#[repr(C)]
7
- flags EpollEventKind: u32 {
+ flags EpollFlags: u32 {
8
const EPOLLIN = 0x001,
9
const EPOLLPRI = 0x002,
10
const EPOLLOUT = 0x004,
@@ -44,12 +44,12 @@ pub struct EpollEvent {
44
}
45
46
impl EpollEvent {
47
- pub fn new(events: EpollEventKind, data: u64) -> EpollEvent {
+ pub fn new(events: EpollFlags, data: u64) -> EpollEvent {
48
EpollEvent { event: libc::epoll_event { events: events.bits(), u64: data } }
49
50
51
- pub fn events(&self) -> EpollEventKind {
52
- EpollEventKind::from_bits(self.event.events).unwrap()
+ pub fn events(&self) -> EpollFlags {
+ EpollFlags::from_bits(self.event.events).unwrap()
53
54
55
pub fn data(&self) -> u64 {
0 commit comments