#[repr(u8)]pub enum EpollCtl {
ADD = 1,
DEL = 2,
MOD = 3,
}Expand description
epoll_ctl 操作类型,用于管理 epoll 实例中的监听目标(fd)。
Variants§
ADD = 1
添加一个新的监听目标到 epoll 实例中(epoll_ctl(epfd, EPOLL_CTL_ADD, fd, event))
DEL = 2
从 epoll 实例中删除一个监听目标(epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL))
MOD = 3
修改已添加目标的监听事件(epoll_ctl(epfd, EPOLL_CTL_MOD, fd, event))
Trait Implementations§
impl Eq for EpollCtl
impl StructuralPartialEq for EpollCtl
Auto Trait Implementations§
impl Freeze for EpollCtl
impl RefUnwindSafe for EpollCtl
impl Send for EpollCtl
impl Sync for EpollCtl
impl Unpin for EpollCtl
impl UnwindSafe for EpollCtl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more