Struct aws_sdk_gamelift::types::PlayerLatency
source · #[non_exhaustive]pub struct PlayerLatency {
pub player_id: Option<String>,
pub region_identifier: Option<String>,
pub latency_in_milliseconds: Option<f32>,
}Expand description
Regional latency information for a player, used when requesting a new game session. This value indicates the amount of time lag that exists when the player is connected to a fleet in the specified Region. The relative difference between a player's latency values for multiple Regions are used to determine which fleets are best suited to place a new game session for the player.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.player_id: Option<String>A unique identifier for a player associated with the latency data.
region_identifier: Option<String>Name of the Region that is associated with the latency value.
latency_in_milliseconds: Option<f32>Amount of time that represents the time lag experienced by the player when connected to the specified Region.
Implementations§
source§impl PlayerLatency
impl PlayerLatency
sourcepub fn player_id(&self) -> Option<&str>
pub fn player_id(&self) -> Option<&str>
A unique identifier for a player associated with the latency data.
sourcepub fn region_identifier(&self) -> Option<&str>
pub fn region_identifier(&self) -> Option<&str>
Name of the Region that is associated with the latency value.
sourcepub fn latency_in_milliseconds(&self) -> Option<f32>
pub fn latency_in_milliseconds(&self) -> Option<f32>
Amount of time that represents the time lag experienced by the player when connected to the specified Region.
source§impl PlayerLatency
impl PlayerLatency
sourcepub fn builder() -> PlayerLatencyBuilder
pub fn builder() -> PlayerLatencyBuilder
Creates a new builder-style object to manufacture PlayerLatency.
Trait Implementations§
source§impl Clone for PlayerLatency
impl Clone for PlayerLatency
source§fn clone(&self) -> PlayerLatency
fn clone(&self) -> PlayerLatency
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PlayerLatency
impl Debug for PlayerLatency
source§impl PartialEq for PlayerLatency
impl PartialEq for PlayerLatency
source§fn eq(&self, other: &PlayerLatency) -> bool
fn eq(&self, other: &PlayerLatency) -> bool
self and other values to be equal, and is used
by ==.