pub trait CloneSink<'a, Item, E>: Sink<Item, Error = E> + Unpin + Send + 'a {
    // Required method
    fn clone_sink(&self) -> Box<dyn CloneSink<'a, Item, E> + 'a>;
}
Expand description

Interface for T: Sink + Clone + Unpin + Send. This is object safe, so you can clone on a boxed trait. In thespis_impl it is used for the channel sender that goes in the actor address.

Required Methods§

source

fn clone_sink(&self) -> Box<dyn CloneSink<'a, Item, E> + 'a>

Clone this sink.

Implementors§

source§

impl<'a, T, Item, E> CloneSink<'a, Item, E> for Twhere T: 'a + Sink<Item, Error = E> + Clone + Unpin + Send + ?Sized,