Trait ServerCommandsExt

Source
pub trait ServerCommandsExt {
    // Required methods
    fn start_server(&mut self);
    fn stop_server(&mut self);
    fn disconnect(&mut self, client_id: ClientId);
}

Required Methods§

Source

fn start_server(&mut self)

Start the server: start tasks that are listening for incoming connections

Source

fn stop_server(&mut self)

Stop the server: disconnect all clients and stop listening for connections

Source

fn disconnect(&mut self, client_id: ClientId)

Disconnect a given client

Implementations on Foreign Types§

Source§

impl ServerCommandsExt for Commands<'_, '_>

Source§

fn start_server(&mut self)

Source§

fn stop_server(&mut self)

Source§

fn disconnect(&mut self, client_id: ClientId)

Source§

impl ServerCommandsExt for World

Source§

fn start_server(&mut self)

Source§

fn stop_server(&mut self)

Source§

fn disconnect(&mut self, client_id: ClientId)

Implementors§