Struct aws_sdk_gamelift::types::builders::ServerProcessBuilder
source · #[non_exhaustive]pub struct ServerProcessBuilder { /* private fields */ }
Expand description
A builder for ServerProcess
.
Implementations§
source§impl ServerProcessBuilder
impl ServerProcessBuilder
sourcepub fn launch_path(self, input: impl Into<String>) -> Self
pub fn launch_path(self, input: impl Into<String>) -> Self
The location of a game build executable or Realtime script. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (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
"
Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations initSDK()
and ProcessReady()
.
sourcepub fn set_launch_path(self, input: Option<String>) -> Self
pub fn set_launch_path(self, input: Option<String>) -> Self
The location of a game build executable or Realtime script. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (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
"
Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations initSDK()
and ProcessReady()
.
sourcepub fn get_launch_path(&self) -> &Option<String>
pub fn get_launch_path(&self) -> &Option<String>
The location of a game build executable or Realtime script. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (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
"
Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations initSDK()
and ProcessReady()
.
sourcepub fn parameters(self, input: impl Into<String>) -> Self
pub fn parameters(self, input: impl Into<String>) -> Self
An optional list of parameters to pass to the server executable or Realtime script on launch.
sourcepub fn set_parameters(self, input: Option<String>) -> Self
pub fn set_parameters(self, input: Option<String>) -> Self
An optional list of parameters to pass to the server executable or Realtime script on launch.
sourcepub fn get_parameters(&self) -> &Option<String>
pub fn get_parameters(&self) -> &Option<String>
An optional list of parameters to pass to the server executable or Realtime script on launch.
sourcepub fn concurrent_executions(self, input: i32) -> Self
pub fn concurrent_executions(self, input: i32) -> Self
The number of server processes using this configuration that run concurrently on each instance or container..
This field is required.sourcepub fn set_concurrent_executions(self, input: Option<i32>) -> Self
pub fn set_concurrent_executions(self, input: Option<i32>) -> Self
The number of server processes using this configuration that run concurrently on each instance or container..
sourcepub fn get_concurrent_executions(&self) -> &Option<i32>
pub fn get_concurrent_executions(&self) -> &Option<i32>
The number of server processes using this configuration that run concurrently on each instance or container..
sourcepub fn build(self) -> ServerProcess
pub fn build(self) -> ServerProcess
Consumes the builder and constructs a ServerProcess
.
Trait Implementations§
source§impl Clone for ServerProcessBuilder
impl Clone for ServerProcessBuilder
source§fn clone(&self) -> ServerProcessBuilder
fn clone(&self) -> ServerProcessBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerProcessBuilder
impl Debug for ServerProcessBuilder
source§impl Default for ServerProcessBuilder
impl Default for ServerProcessBuilder
source§fn default() -> ServerProcessBuilder
fn default() -> ServerProcessBuilder
source§impl PartialEq for ServerProcessBuilder
impl PartialEq for ServerProcessBuilder
source§fn eq(&self, other: &ServerProcessBuilder) -> bool
fn eq(&self, other: &ServerProcessBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerProcessBuilder
Auto Trait Implementations§
impl Freeze for ServerProcessBuilder
impl RefUnwindSafe for ServerProcessBuilder
impl Send for ServerProcessBuilder
impl Sync for ServerProcessBuilder
impl Unpin for ServerProcessBuilder
impl UnwindSafe for ServerProcessBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more