pub enum Poll {
Wake,
Callback,
Timeout,
Event {
ident: i32,
fd: RawFd,
events: i32,
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 Freeze for Poll
impl RefUnwindSafe for Poll
impl !Send for Poll
impl !Sync for Poll
impl Unpin for Poll
impl UnwindSafe for Poll
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more