Struct rsix::io::epoll::Epoll[][src]

pub struct Epoll<Context: Context> { /* fields omitted */ }
Expand description

An “epoll”, an interface to an OS object allowing one to repeatedly wait for events from a set of file descriptors efficiently.

Implementations

epoll_create1(flags)—Creates a new Epoll.

Use the CreateFlags::CLOEXEC flag to prevent the resulting file descriptor from being implicity passed across exec boundaries.

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 occuring on the file descriptor associated with data.

epoll_ctl(self, EPOLL_CTL_MOD, target, event)—Modifies an element in this Epoll.

This sets the events of interest with target to events.

epoll_ctl(self, EPOLL_CTL_DEL, target, NULL)—Removes an element in this Epoll.

This also returns the owning Data.

epoll_wait(self, events, timeout)—Waits for registered events of interest.

For each event of interest, an element is written to events. On success, this returns the number of written elements.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.