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 ==
.impl StructuralPartialEq for PlayerLatency
Auto Trait Implementations§
impl Freeze for PlayerLatency
impl RefUnwindSafe for PlayerLatency
impl Send for PlayerLatency
impl Sync for PlayerLatency
impl Unpin for PlayerLatency
impl UnwindSafe for PlayerLatency
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