summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Matthias Schaefer <philipp.matthias.schaefer@posteo.de>2016-09-15 22:08:04 +0200
committerPhilipp Matthias Schaefer <philipp.matthias.schaefer@posteo.de>2016-09-15 22:08:04 +0200
commit2b0c9919acf1aa4abf5f1b1d998c4d7404284fcc (patch)
treef551e83567777307610979227a7d872a0a67866d
parentc9edda389b5edba97165c887aea6f4e5d11541a2 (diff)
downloadnix-2b0c9919acf1aa4abf5f1b1d998c4d7404284fcc.zip
Rename EpollEventKind to EpollFlags, according to convention.
-rw-r--r--src/sys/epoll.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/epoll.rs b/src/sys/epoll.rs
index 8e18d857..9774318f 100644
--- a/src/sys/epoll.rs
+++ b/src/sys/epoll.rs
@@ -4,7 +4,7 @@ use std::os::unix::io::RawFd;
bitflags!(
#[repr(C)]
- flags EpollEventKind: u32 {
+ flags EpollFlags: u32 {
const EPOLLIN = 0x001,
const EPOLLPRI = 0x002,
const EPOLLOUT = 0x004,
@@ -44,12 +44,12 @@ pub struct EpollEvent {
}
impl EpollEvent {
- pub fn new(events: EpollEventKind, data: u64) -> EpollEvent {
+ pub fn new(events: EpollFlags, data: u64) -> EpollEvent {
EpollEvent { event: libc::epoll_event { events: events.bits(), u64: data } }
}
- pub fn events(&self) -> EpollEventKind {
- EpollEventKind::from_bits(self.event.events).unwrap()
+ pub fn events(&self) -> EpollFlags {
+ EpollFlags::from_bits(self.event.events).unwrap()
}
pub fn data(&self) -> u64 {