SendStreamToPublisher

Trait SendStreamToPublisher 

Source
pub trait SendStreamToPublisher: Sized + MessagePublisher {
    // Required method
    fn send_all<'a, SourceStream>(
        &'a mut self,
        stream: SourceStream,
    ) -> StreamPublisher<'a, Self, SourceStream> 
       where SourceStream: 'a + Stream<Item = Self::Message>;
}
Expand description

Provides a way to send the values generated by a stream to a publisher

Required Methods§

Source

fn send_all<'a, SourceStream>( &'a mut self, stream: SourceStream, ) -> StreamPublisher<'a, Self, SourceStream>
where SourceStream: 'a + Stream<Item = Self::Message>,

Sends everything from a particular source stream to this publisher

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§