#[repr(transparent)]pub struct PollFd { /* private fields */ }
Expand description
Implementations
sourceimpl PollFd
impl PollFd
sourcepub const fn new(fd: RawFd, events: PollFlags) -> PollFd
pub const fn new(fd: RawFd, events: PollFlags) -> PollFd
Creates a new PollFd
specifying the events of interest
for a given file descriptor.
sourcepub fn revents(self) -> Option<PollFlags>
pub fn revents(self) -> Option<PollFlags>
Returns the events that occurred in the last call to poll
or ppoll
. Will only return
None
if the kernel provides status flags that Nix does not know about.
sourcepub fn set_events(&mut self, events: PollFlags)
pub fn set_events(&mut self, events: PollFlags)
Modify the events of interest for this PollFd
.
Trait Implementations
impl Copy for PollFd
impl Eq for PollFd
impl StructuralEq for PollFd
impl StructuralPartialEq for PollFd
Auto Trait Implementations
impl RefUnwindSafe for PollFd
impl Send for PollFd
impl Sync for PollFd
impl Unpin for PollFd
impl UnwindSafe for PollFd
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