Skip to main content

ServicesServerHost

Trait ServicesServerHost 

pub trait ServicesServerHost {
    // Provided methods
    fn commands(&mut self) -> &mut dyn Commands { ... }
    fn levels(&self) -> &dyn Levels { ... }
    fn messages(&self) -> &dyn Messages { ... }
    fn players(&self) -> &dyn Players { ... }
}
Expand description

The server host’s methods of the services area, implemented by the game and reached through ServerHost.

Provided Methods§

fn commands(&mut self) -> &mut dyn Commands

The commands service. Not on wasm: a frame resource; its methods are the imports.

fn levels(&self) -> &dyn Levels

The levels service. Not on wasm: a frame resource; its methods are the imports.

fn messages(&self) -> &dyn Messages

The messages service. Not on wasm: a frame resource; its methods are the imports.

fn players(&self) -> &dyn Players

The players service. Not on wasm: a frame resource; its methods are the imports.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§