Enum atm_async_utils::test_stream::PollOp [] [src]

pub enum PollOp<E> {
    Delegate,
    NotReady,
    Err(E),
}

What to do the next time poll is called.

Variants

Simply delegate to the underlying Stream.

Return AsyncSink::NotReady instead of calling into the underlying operation. The task is immediately notified.

Return an error instead of calling into the underlying operation.

Trait Implementations

impl<E: Clone> Clone for PollOp<E>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E: Debug> Debug for PollOp<E>
[src]

[src]

Formats the value using the given formatter.

impl<E: PartialEq> PartialEq for PollOp<E>
[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<E> Arbitrary for PollOp<E> where
    E: Arbitrary
[src]

[src]

Generates 75% Delegate, 25% NotReady.

[src]