Enum ordered_stream::PollResult
source · 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
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§
source§impl<D, T> PollResult<T, D>
impl<D, T> PollResult<T, D>
source§impl<T, D, E> PollResult<T, Result<D, E>>
impl<T, D, E> PollResult<T, Result<D, E>>
sourcepub fn transpose_result(self) -> Result<PollResult<T, D>, E>
pub fn transpose_result(self) -> Result<PollResult<T, D>, E>
Extract the error of a Result
item.
sourcepub fn transpose_result_item(self) -> Result<PollResult<T, D>, (T, E)>
pub fn transpose_result_item(self) -> Result<PollResult<T, D>, (T, E)>
Extract the error and ordering from a Result
item.