rustix/backend/linux_raw/event/
epoll.rsuse crate::backend::c;
use bitflags::bitflags;
bitflags! {
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct CreateFlags: c::c_uint {
const CLOEXEC = linux_raw_sys::general::EPOLL_CLOEXEC;
const _ = !0;
}
}
bitflags! {
#[repr(transparent)]
#[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct EventFlags: u32 {
const IN = linux_raw_sys::general::EPOLLIN as u32;
const OUT = linux_raw_sys::general::EPOLLOUT as u32;
const PRI = linux_raw_sys::general::EPOLLPRI as u32;
const ERR = linux_raw_sys::general::EPOLLERR as u32;
const HUP = linux_raw_sys::general::EPOLLHUP as u32;
const RDNORM = linux_raw_sys::general::EPOLLRDNORM as u32;
const RDBAND = linux_raw_sys::general::EPOLLRDBAND as u32;
const WRNORM = linux_raw_sys::general::EPOLLWRNORM as u32;
const WRBAND = linux_raw_sys::general::EPOLLWRBAND as u32;
const MSG = linux_raw_sys::general::EPOLLMSG as u32;
const RDHUP = linux_raw_sys::general::EPOLLRDHUP as u32;
const ET = linux_raw_sys::general::EPOLLET as u32;
const ONESHOT = linux_raw_sys::general::EPOLLONESHOT as u32;
const WAKEUP = linux_raw_sys::general::EPOLLWAKEUP as u32;
const EXCLUSIVE = linux_raw_sys::general::EPOLLEXCLUSIVE as u32;
const _ = !0;
}
}