Enum core::task::Poll[][src]

pub enum Poll<T> {
    Ready(T),
    Pending,
}
🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.

Variants

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Represents that a value is immediately ready.

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Represents that a value is not ready yet.

When a function returns Pending, the function must also ensure that the current task is scheduled to be awoken when progress can be made.

Methods

impl<T> Poll<T>
[src]

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Change the ready value of this Poll with the closure provided

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Returns whether this is Poll::Ready

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Returns whether this is Poll::Pending

impl<T, E> Poll<Result<T, E>>
[src]

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Change the success value of this Poll with the closure provided

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Change the error value of this Poll with the closure provided

Trait Implementations

impl<T: Copy> Copy for Poll<T>
[src]

impl<T: Clone> Clone for Poll<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Poll<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for Poll<T>
[src]

impl<T: PartialEq> PartialEq for Poll<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Ord> Ord for Poll<T>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: PartialOrd> PartialOrd for Poll<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Hash> Hash for Poll<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> From<T> for Poll<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Poll<T> where
    T: Send

impl<T> Sync for Poll<T> where
    T: Sync