Trait thespis_impl::CloneSink
source · 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§
sourcefn clone_sink(&self) -> Box<dyn CloneSink<'a, Item, E> + 'a>
fn clone_sink(&self) -> Box<dyn CloneSink<'a, Item, E> + 'a>
Clone this sink.