pub trait Broadcaster:
Clone
+ Send
+ 'static {
type Recipients;
type Message: Codec + Clone + Send + 'static;
type Response: Clone + Send + 'static;
// Required method
fn broadcast(
&mut self,
recipients: Self::Recipients,
message: Self::Message,
) -> impl Future<Output = Receiver<Self::Response>> + Send;
}Expand description
Broadcaster is the interface responsible for attempting replication of messages across a network.
Required Associated Types§
Sourcetype Recipients
type Recipients
The type of recipients that can receive messages.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.