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