Struct lrs::poll::Epoll

An epoll instance.

Syntax

struct Epoll {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new epoll instance.

Methods

ReceiverNameDescription
&selfadd

Adds a file descriptor to the epoll instance.

&selfmodify

Modifies the flags associated with an added file descriptor.

&selfremove

Removes a file descriptor from an epoll instance.

&selfwait

Waits for an event to occur.

&selfwait_timeout

Waits for an event to occur or a timeout to expire.

Trait implementations

NameDescription
Drop

Objects with a destructor.

Eq

Objects that implement the binary == and != operators.

FDContainer

Objects that are file descriptor wrappers.

UndefState

Types that are not valid when they contain certain bit patterns.