pub trait Broadcaster<Cfg: Config>:
Clone
+ Send
+ 'static {
type Message: Codec<Cfg> + Clone + Send + 'static;
type Response: Clone + Send + 'static;
// Required method
fn broadcast(
&mut self,
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§
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.