Struct lrs::poll::Event

An event returned after polling.

Syntax

struct Event {
    /* private fields */
}

Methods

ReceiverNameDescription
selffd

Returns the associated file descriptor.

selfis_error

Returns whether an error condition occurred on the file descriptor.

selfis_hang_up

Returns whether the peer has hung up.

selfis_priority

Returns whether priority data is available for reading.

selfis_read

Returns whether the file descriptor is readable.

selfis_read_hang_up

Returns whether the peer has hung up his write end.

selfis_write

Returns whether the file descriptor is writable.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

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

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.