Struct epoll::Events[]

pub struct Events { /* fields omitted */ }

Methods

impl Events

EPOLLET: Events = Events{bits: libc::EPOLLET as u32,}

Sets the Edge Triggered behavior for the associated file descriptor.

The default behavior for epoll is Level Triggered.

EPOLLIN: Events = Events{bits: libc::EPOLLIN as u32,}

The associated file is available for read operations.

EPOLLERR: Events = Events{bits: libc::EPOLLERR as u32,}

Error condition happened on the associated file descriptor.

wait will always wait for this event; is not necessary to set it in events.

EPOLLHUP: Events = Events{bits: libc::EPOLLHUP as u32,}

Hang up happened on the associated file descriptor.

wait will always wait for this event; it is not necessary to set it in events. Note that when reading from a channel such as a pipe or a stream socket, this event merely indicates that the peer closed its end of the channel. Subsequent reads from the channel will return 0 (end of file) only after all outstanding data in the channel has been consumed.

EPOLLOUT: Events = Events{bits: libc::EPOLLOUT as u32,}

The associated file is available for write operations.

EPOLLPRI: Events = Events{bits: libc::EPOLLPRI as u32,}

There is urgent data available for read operations.

EPOLLRDHUP: Events = Events{bits: libc::EPOLLRDHUP as u32,}

Stream socket peer closed connection, or shut down writing half of connection.

This flag is especially useful for writing simple code to detect peer shutdown when using Edge Triggered monitoring.

EPOLLWAKEUP: Events = Events{bits: libc::EPOLLWAKEUP as u32,}

If EPOLLONESHOT and EPOLLET are clear and the process has the CAP_BLOCK_SUSPEND capability, ensure that the system does not enter "suspend" or "hibernate" while this event is pending or being processed.

The event is considered as being "processed" from the time when it is returned by a call to wait until the next call to wait on the same EpollInstance descriptor, the closure of that file descriptor, the removal of the event file descriptor with EPOLL_CTL_DEL, or the clearing of EPOLLWAKEUP for the event file descriptor with EPOLL_CTL_MOD.

EPOLLONESHOT: Events = Events{bits: libc::EPOLLONESHOT as u32,}

Sets the one-shot behavior for the associated file descriptor.

This means that after an event is pulled out with wait the associated file descriptor is internally disabled and no other events will be reported by the epoll interface. The user must call ctl with EPOLL_CTL_MOD to rearm the file descriptor with a new event mask.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for Events

impl PartialEq for Events

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Events

impl Clone for Events

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for Events

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Events

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Events

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Events

Formats the value using the given formatter. Read more

impl Binary for Events

Formats the value using the given formatter.

impl Octal for Events

Formats the value using the given formatter.

impl LowerHex for Events

Formats the value using the given formatter.

impl UpperHex for Events

Formats the value using the given formatter.

impl BitOr for Events

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for Events

Adds the set of flags.

impl BitXor for Events

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for Events

Toggles the set of flags.

impl BitAnd for Events

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for Events

Disables all flags disabled in the set.

impl Sub for Events

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for Events

Disables all flags enabled in the set.

impl Not for Events

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<Events> for Events

Extends a collection with the contents of an iterator. Read more

impl FromIterator<Events> for Events

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for Events

impl Sync for Events