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§
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