pub enum AttemptPollResult {
Busy,
Pending,
IFinished,
SomeoneElseFinished,
Yield,
Cancelled,
}
Expand description
The result of a call to try_poll
.
This indicates the result of attempting to poll
the future.
Variants§
Busy
The future was being polled by another thread, but it was notified to poll at least once more before yielding.
Pending
The future was polled, but did not complete.
IFinished
The future was polled and finished by this thread. This result is normally used to trigger garbage-collection of the future.
SomeoneElseFinished
The future was already completed by another thread.
Yield
The future was polled, did not complete, but it is woken whilst it is polled so it should be polled again.
Cancelled
The future was cancelled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttemptPollResult
impl RefUnwindSafe for AttemptPollResult
impl Send for AttemptPollResult
impl Sync for AttemptPollResult
impl Unpin for AttemptPollResult
impl UnwindSafe for AttemptPollResult
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