Enum async_utils::stream::StreamItem
source · pub enum StreamItem<T, E> {
Item(T),
Epitaph(E),
}
Expand description
Values returned from a stream with an epitaph are of type StreamItem
.
Variants§
Item(T)
Item polled from the underlying Stream
Epitaph(E)
Epitaph value returned after the underlying Stream
is exhausted.
Trait Implementations§
source§impl<T: PartialEq, E: PartialEq> PartialEq for StreamItem<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq for StreamItem<T, E>
source§fn eq(&self, other: &StreamItem<T, E>) -> bool
fn eq(&self, other: &StreamItem<T, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T, E> StructuralPartialEq for StreamItem<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for StreamItem<T, E>
impl<T, E> RefUnwindSafe for StreamItem<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for StreamItem<T, E>
impl<T, E> Sync for StreamItem<T, E>
impl<T, E> Unpin for StreamItem<T, E>
impl<T, E> UnwindSafe for StreamItem<T, E>where
T: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more