pub trait ReplicationHandler:
Send
+ Sync
+ 'static {
// Required methods
fn broadcast(&self, message: Bytes);
fn send_to(&self, peer: &[u8], message: Bytes);
}Expand description
Callback trait for sending messages to peers.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".