pub struct RequestMatchmakerPlayer<C, M, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to RequestMatchmakerPlayer
.
Attempts to create a new matchmaker player for the current identity. If succeeds, the identity will receive a GlobalEventMatchmakerLobbyJoin
event with all the information required to join the lobby. Only relevant if the party is already in a matchmaker lobby. # When To Use This Endpoint ## Joining a Party Already In a Lobby When an identity joins a party that’s already in a lobby, a new matchmaker player will not automatically be created unless JoinParty#matchmaker_auto_join_lobby
is set to true
. ## Leaving the Game and Returning If the user leaves the game and comes back but is still in the party, then they will have to create a new matchmaker player. ## Failed to Connect to Lobby or Disconnected From Lobby If the user failed to establish a connection with the lobby or they got disconnected, their matchmaker player will be removed. Use this endpoint to create a new matchmaker player.
Implementations§
Source§impl<C, M, R> RequestMatchmakerPlayer<C, M, R>
impl<C, M, R> RequestMatchmakerPlayer<C, M, R>
Sourcepub async fn send(
self,
) -> Result<RequestMatchmakerPlayerOutput, SdkError<RequestMatchmakerPlayerError>>where
R::Policy: SmithyRetryPolicy<RequestMatchmakerPlayerInputOperationOutputAlias, RequestMatchmakerPlayerOutput, RequestMatchmakerPlayerError, RequestMatchmakerPlayerInputOperationRetryAlias>,
pub async fn send(
self,
) -> Result<RequestMatchmakerPlayerOutput, SdkError<RequestMatchmakerPlayerError>>where
R::Policy: SmithyRetryPolicy<RequestMatchmakerPlayerInputOperationOutputAlias, RequestMatchmakerPlayerOutput, RequestMatchmakerPlayerError, RequestMatchmakerPlayerInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Trait Implementations§
Auto Trait Implementations§
impl<C, M, R> Freeze for RequestMatchmakerPlayer<C, M, R>
impl<C, M, R = Standard> !RefUnwindSafe for RequestMatchmakerPlayer<C, M, R>
impl<C, M, R> Send for RequestMatchmakerPlayer<C, M, R>
impl<C, M, R> Sync for RequestMatchmakerPlayer<C, M, R>
impl<C, M, R> Unpin for RequestMatchmakerPlayer<C, M, R>
impl<C, M, R = Standard> !UnwindSafe for RequestMatchmakerPlayer<C, M, R>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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