Enum ndk::looper::Poll[][src]

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

An event was received

Fields of Event

ident: i32fd: RawFdevents: FdEventdata: *mut c_void

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

Look up the concrete type from the JVM.

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.