rustix/backend/linux_raw/event/
epoll.rs
1use crate::backend::c;
2use bitflags::bitflags;
3
4bitflags! {
5 #[repr(transparent)]
9 #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
10 pub struct CreateFlags: c::c_uint {
11 const CLOEXEC = linux_raw_sys::general::EPOLL_CLOEXEC;
13
14 const _ = !0;
16 }
17}
18
19bitflags! {
20 #[repr(transparent)]
24 #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)]
25 pub struct EventFlags: u32 {
26 const IN = linux_raw_sys::general::EPOLLIN as u32;
28
29 const OUT = linux_raw_sys::general::EPOLLOUT as u32;
31
32 const PRI = linux_raw_sys::general::EPOLLPRI as u32;
34
35 const ERR = linux_raw_sys::general::EPOLLERR as u32;
37
38 const HUP = linux_raw_sys::general::EPOLLHUP as u32;
40
41 const RDNORM = linux_raw_sys::general::EPOLLRDNORM as u32;
43
44 const RDBAND = linux_raw_sys::general::EPOLLRDBAND as u32;
46
47 const WRNORM = linux_raw_sys::general::EPOLLWRNORM as u32;
49
50 const WRBAND = linux_raw_sys::general::EPOLLWRBAND as u32;
52
53 const MSG = linux_raw_sys::general::EPOLLMSG as u32;
55
56 const RDHUP = linux_raw_sys::general::EPOLLRDHUP as u32;
58
59 const ET = linux_raw_sys::general::EPOLLET as u32;
61
62 const ONESHOT = linux_raw_sys::general::EPOLLONESHOT as u32;
64
65 const WAKEUP = linux_raw_sys::general::EPOLLWAKEUP as u32;
67
68 const EXCLUSIVE = linux_raw_sys::general::EPOLLEXCLUSIVE as u32;
70
71 const _ = !0;
73 }
74}