Struct nix::poll::PollFd [] [src]

#[repr(C)]
pub struct PollFd { /* fields omitted */ }

This is a wrapper around libc::pollfd.

It's meant to be used as an argument to the poll and ppoll functions to specify the events of interest for a specific file descriptor.

After a call to poll or ppoll, the events that occured can be retrieved by calling revents() on the PollFd.

Methods

impl PollFd
[src]

[src]

Creates a new PollFd specifying the events of interest for a given file descriptor.

[src]

Returns the events that occured in the last call to poll or ppoll.

Trait Implementations

impl Clone for PollFd
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for PollFd
[src]

impl Debug for PollFd
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PollFd

impl Sync for PollFd