Skip to main content

Server

Trait Server 

Source
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§

Source

fn new_broadcast(ip: &str) -> Self

Creates a new Dummy Server.

Source

fn broadcast(&mut self, packet: ComPacket)

Sends simulated radar data on a loop.

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.

Implementors§