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<'de> Deserialize<'de> for PollResult
impl<'de> Deserialize<'de> for PollResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PollResult
impl PartialEq for PollResult
Source§impl Serialize for PollResult
impl Serialize for PollResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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