Trait async_utils::stream::WithEpitaph
source · 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§
sourcefn with_epitaph<E>(self, epitaph: E) -> StreamWithEpitaph<Self, E>
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.