Skip to main content

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".

Implementors§

Source§

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