pub struct ServerProcess {
pub concurrent_executions: i64,
pub launch_path: String,
pub parameters: Option<String>,
}Expand description
A set of instructions for launching server processes on each instance in a fleet. Server processes run either a custom game build executable or a Realtime Servers script. Each instruction set identifies the location of the custom game build executable or Realtime launch script, optional launch parameters, and the number of server processes with this configuration to maintain concurrently on the instance. Server process configurations make up a fleet's RuntimeConfiguration .
Fields§
§concurrent_executions: i64The number of server processes that use this configuration to run concurrently on an instance.
launch_path: StringThe location of the server executable in a custom game build or the name of the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (for custom game builds only):
C:\game. Example: "C:\game\MyGame\server.exe" -
Linux:
/local/game. Examples: "/local/game/MyGame/server.exe" or "/local/game/MyRealtimeScript.js"
parameters: Option<String>An optional list of parameters to pass to the server executable or Realtime script on launch.
Trait Implementations§
Source§impl Clone for ServerProcess
impl Clone for ServerProcess
Source§fn clone(&self) -> ServerProcess
fn clone(&self) -> ServerProcess
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more