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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Poll
impl !Send for Poll
impl !Sync for Poll
impl Unpin for Poll
impl UnwindSafe for Poll
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more