pub enum PollResult {
Ready,
Pending,
PollAgain,
}Expand description
Outcome of one call to Runtime::poll.
Part of the native driver interface: Driver::run implementations inspect
this result to decide whether to stop, wait for events, or run another
nonblocking iteration.
Variants§
Ready
The future supplied to Runtime::block_on has completed; stop driving.
Pending
No work is immediately runnable; the driver may wait for events.
PollAgain
Work remains; process external events without blocking, then poll again.
Trait Implementations§
Source§impl Clone for PollResult
impl Clone for PollResult
impl Copy for PollResult
Source§impl Debug for PollResult
impl Debug for PollResult
impl Eq for PollResult
Source§impl PartialEq for PollResult
impl PartialEq for PollResult
impl StructuralPartialEq for PollResult
Auto Trait Implementations§
impl Freeze for PollResult
impl RefUnwindSafe for PollResult
impl Send for PollResult
impl Sync for PollResult
impl Unpin for PollResult
impl UnsafeUnpin for PollResult
impl UnwindSafe for PollResult
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