pub struct PollAdd { /* private fields */ }
Expand description
Poll the specified fd.
Unlike poll or epoll without EPOLLONESHOT
, this interface always works in one shot mode.
That is, once the poll operation is completed, it will have to be resubmitted.
Implementations§
source§impl PollAdd
impl PollAdd
sourcepub fn new(fd: impl UseFixed, flags: u32) -> Self
pub fn new(fd: impl UseFixed, flags: u32) -> Self
The bits that may be set in flags
are defined in <poll.h>
,
and documented in poll(2)
.
sourcepub const CODE: u8 = 6u8
pub const CODE: u8 = 6u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.