pub enum Poll {
    Wake,
    Callback,
    Timeout,
    Event {
        ident: i32,
        fd: RawFd,
        events: FdEvent,
        data: *mut c_void,
    },
}
Expand description

The poll result from a ThreadLooper.

Variants

Wake

This looper was woken using ForeignLooper::wake()

Callback

For ThreadLooper::poll_once*(), an event was received and processed using a callback.

Timeout

For ThreadLooper::poll_*_timeout(), the requested timeout was reached before any events.

Event

Fields

ident: i32
fd: RawFd
events: FdEvent

An event was received

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.