Trait NetworkServerHost
pub trait NetworkServerHost {
// Provided method
fn net_send_to_player(
&mut self,
player: u128,
channel: &str,
data: &[u8],
) -> Result<(), String> { ... }
}Expand description
The server host’s methods of the network area, implemented by the game and reached through ServerHost.
Provided Methods§
fn net_send_to_player(
&mut self,
player: u128,
channel: &str,
data: &[u8],
) -> Result<(), String>
fn net_send_to_player( &mut self, player: u128, channel: &str, data: &[u8], ) -> Result<(), String>
Side: server.
Sends data on channel (mod_id:name, at most 30 000 bytes, at
most 32 a player a tick) to player’s client, at the tick’s end, from
any server hook. Ok means accepted: a player who left or isn’t on a
Horizon client doesn’t get it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".