pub fn epoll_add(
epoll: impl AsFd,
source: impl AsFd,
data: u64,
event_flags: EventFlags
) -> Result<()>Expand description
epoll_ctl(self, EPOLL_CTL_ADD, data, event)—Adds an element to an
Epoll.
This registers interest in any of the events set in events occurring
on the file descriptor associated with data.
Note that if epoll_del is not called on the I/O source passed into
this function before the I/O source is closed, then the epoll will
act as if the I/O source is still registered with it. This can lead to
spurious events being returned from epoll_wait. If a file descriptor
is an Arc<dyn SystemResource>, then epoll can be thought to maintain
a Weak<dyn SystemResource> to the file descriptor.