pub trait WithEpitaph: Sized {
    // Required method
    fn with_epitaph<E>(self, epitaph: E) -> StreamWithEpitaph<Self, E>;
}
Expand description

Extension trait to allow for easy creation of a StreamWithEpitaph from a Stream.

Required Methods§

source

fn with_epitaph<E>(self, epitaph: E) -> StreamWithEpitaph<Self, E>

Map this stream to one producing a StreamItem::Item value for each item of the stream followed by a single StreamItem::Epitaph value with the provided epitaph.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> WithEpitaph for Twhere T: Stream,