pub trait Server {
// Required methods
fn new_broadcast(ip: &str) -> Self;
fn broadcast(&mut self, packet: ComPacket);
}Expand description
A connection that sends dummy data on the specified ip.
Required Methods§
Sourcefn new_broadcast(ip: &str) -> Self
fn new_broadcast(ip: &str) -> Self
Creates a new Dummy Server.
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.