pub enum PollResult<Ordering, Data> {
    Item {
        data: Data,
        ordering: Ordering,
    },
    NoneBefore,
    Terminated,
}
Expand description

The result of a OrderedStream::poll_next_before operation.

Variants§

§

Item

Fields

§data: Data
§ordering: Ordering

An item with a corresponding ordering token.

§

NoneBefore

This stream will not return any items prior to the given point.

§

Terminated

This stream is terminated and should not be polled again.

Implementations§

Extract the data from the result.

Extract the item from the result.

Apply a closure to the data.

Extract the error of a Result item.

Extract the error and ordering from a Result item.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.