Enum finchers_core::Poll [] [src]

pub enum Poll<T> {
    Ready(T),
    Pending,
}

An enum which indicates whether a value is ready or not.

Variants

The task has just been finished with a returned value of T.

The task is not ready and should be scheduled to be awoken by the executor.

Methods

impl<T> Poll<T>
[src]

[src]

Return whether the value is Pending.

[src]

Return whether the value is Ready.

[src]

Maps the value to a new type with given function.

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

[src]

Return whether the value is Ready(Ok(t)).

[src]

Return whether the value is Ready(Err(t)).

[src]

Maps the value to a new type with given function if the value is Ok.

[src]

Maps the value to a new type with given function if the value is Err.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

[src]

This method tests for !=.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl<T> Into<Async<T>> for Poll<T>
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[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