pub trait SubscriberForward<'a, S> {
type Output;
// Required method
fn forward(&'a mut self, sink: S) -> Self::Output;
}
Expand description
Allows writing subscriber.forward(receiver)
instead of subscriber.stream().map(Ok).forward(publisher)
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.