pub trait MessageSink<M: Message>: Sink<M, Error = Disconnected> + Unpin {
    fn is_connected(&self) -> bool;
    fn clone_message_sink(&self) -> Box<dyn MessageSink<M>>;
}
Expand description

A MessageSink is similar to a MessageChannel, but it is a sink and operates asynchronously.

Required Methods

Returns whether the actor referred to by this message sink is running and accepting messages.

Clones this message sink as a boxed trait object.

Implementors