pub enum PollResult {
Pending,
Ready,
Cancelled,
}Expand description
The outcome of a single poll.
Cancelled is recorded when a future is dropped before completing
(its last poll returned Pending and no Ready event was ever emitted).
§Examples
use async_reify::PollResult;
let ready = PollResult::Ready;
let pending = PollResult::Pending;
assert_ne!(ready, pending);Variants§
Pending
The future returned Poll::Pending.
Ready
The future returned Poll::Ready.
Cancelled
The future was dropped before completing.
Trait Implementations§
Source§impl Clone for PollResult
impl Clone for PollResult
Source§fn clone(&self) -> PollResult
fn clone(&self) -> PollResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PollResult
impl Debug for PollResult
Source§impl PartialEq for PollResult
impl PartialEq for PollResult
impl Eq 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