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
sourceimpl 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.
pub fn build(self) -> Entry
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PollAdd
impl Send for PollAdd
impl Sync for PollAdd
impl Unpin for PollAdd
impl UnwindSafe for PollAdd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more