Trait async_utils::stream::WithTag

source ·
pub trait WithTag: Sized {
    // Required method
    fn tagged<T>(self, tag: T) -> Tagged<T, Self> ;
}
Expand description

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

Required Methods§

source

fn tagged<T>(self, tag: T) -> Tagged<T, Self>

Produce a new stream from this one which yields item tupled with a constant tag

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<St: Sized> WithTag for St