#[non_exhaustive]pub struct RuntimeConfigurationBuilder { /* private fields */ }
Expand description
A builder for RuntimeConfiguration
.
Implementations§
source§impl RuntimeConfigurationBuilder
impl RuntimeConfigurationBuilder
sourcepub fn server_processes(self, input: ServerProcess) -> Self
pub fn server_processes(self, input: ServerProcess) -> Self
Appends an item to server_processes
.
To override the contents of this collection use set_server_processes
.
A collection of server process configurations that identify what server processes to run on fleet computes.
sourcepub fn set_server_processes(self, input: Option<Vec<ServerProcess>>) -> Self
pub fn set_server_processes(self, input: Option<Vec<ServerProcess>>) -> Self
A collection of server process configurations that identify what server processes to run on fleet computes.
sourcepub fn get_server_processes(&self) -> &Option<Vec<ServerProcess>>
pub fn get_server_processes(&self) -> &Option<Vec<ServerProcess>>
A collection of server process configurations that identify what server processes to run on fleet computes.
sourcepub fn max_concurrent_game_session_activations(self, input: i32) -> Self
pub fn max_concurrent_game_session_activations(self, input: i32) -> Self
The number of game sessions in status ACTIVATING
to allow on an instance or container. This setting limits the instance resources that can be used for new game activations at any one time.
sourcepub fn set_max_concurrent_game_session_activations(
self,
input: Option<i32>
) -> Self
pub fn set_max_concurrent_game_session_activations( self, input: Option<i32> ) -> Self
The number of game sessions in status ACTIVATING
to allow on an instance or container. This setting limits the instance resources that can be used for new game activations at any one time.
sourcepub fn get_max_concurrent_game_session_activations(&self) -> &Option<i32>
pub fn get_max_concurrent_game_session_activations(&self) -> &Option<i32>
The number of game sessions in status ACTIVATING
to allow on an instance or container. This setting limits the instance resources that can be used for new game activations at any one time.
sourcepub fn game_session_activation_timeout_seconds(self, input: i32) -> Self
pub fn game_session_activation_timeout_seconds(self, input: i32) -> Self
The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players. During this time, the game session is in status ACTIVATING
. If the game session does not become active before the timeout, it is ended and the game session status is changed to TERMINATED
.
sourcepub fn set_game_session_activation_timeout_seconds(
self,
input: Option<i32>
) -> Self
pub fn set_game_session_activation_timeout_seconds( self, input: Option<i32> ) -> Self
The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players. During this time, the game session is in status ACTIVATING
. If the game session does not become active before the timeout, it is ended and the game session status is changed to TERMINATED
.
sourcepub fn get_game_session_activation_timeout_seconds(&self) -> &Option<i32>
pub fn get_game_session_activation_timeout_seconds(&self) -> &Option<i32>
The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players. During this time, the game session is in status ACTIVATING
. If the game session does not become active before the timeout, it is ended and the game session status is changed to TERMINATED
.
sourcepub fn build(self) -> RuntimeConfiguration
pub fn build(self) -> RuntimeConfiguration
Consumes the builder and constructs a RuntimeConfiguration
.
Trait Implementations§
source§impl Clone for RuntimeConfigurationBuilder
impl Clone for RuntimeConfigurationBuilder
source§fn clone(&self) -> RuntimeConfigurationBuilder
fn clone(&self) -> RuntimeConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuntimeConfigurationBuilder
impl Debug for RuntimeConfigurationBuilder
source§impl Default for RuntimeConfigurationBuilder
impl Default for RuntimeConfigurationBuilder
source§fn default() -> RuntimeConfigurationBuilder
fn default() -> RuntimeConfigurationBuilder
source§impl PartialEq for RuntimeConfigurationBuilder
impl PartialEq for RuntimeConfigurationBuilder
source§fn eq(&self, other: &RuntimeConfigurationBuilder) -> bool
fn eq(&self, other: &RuntimeConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuntimeConfigurationBuilder
Auto Trait Implementations§
impl Freeze for RuntimeConfigurationBuilder
impl RefUnwindSafe for RuntimeConfigurationBuilder
impl Send for RuntimeConfigurationBuilder
impl Sync for RuntimeConfigurationBuilder
impl Unpin for RuntimeConfigurationBuilder
impl UnwindSafe for RuntimeConfigurationBuilder
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