[][src]Enum futures::task::Poll

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

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)

futures in libcore are unstable

Represents that a value is immediately ready.

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

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)

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)

futures in libcore are unstable

Returns whether this is Poll::Ready

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

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)

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)

futures in libcore are unstable

Change the error value of this Poll with the closure provided

Trait Implementations

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

Performs copy-assignment from source. Read more

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

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

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

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as successful.

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as failed.

impl<T, E> Try for Poll<Option<Result<T, E>>>
[src]

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as successful.

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as failed.

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

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]