ToPublisherSink

Trait ToPublisherSink 

Source
pub trait ToPublisherSink: Sized + MessagePublisher {
    // Required method
    fn to_sink(self) -> PublisherSink<Self>;
}
Expand description

Trait that turns publishers into sinks

Required Methods§

Source

fn to_sink(self) -> PublisherSink<Self>

Converts this publisher into a futures Sink

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§

Source§

impl<Publisher> ToPublisherSink for Publisher
where Publisher: Sized + MessagePublisher,