[−][src]Struct google_games1::RoomLeaveRequest
This is a JSON template for a leave room request.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- leave rooms (request)
Fields
kind: Option<String>
Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveRequest.
reason: Option<String>
Reason for leaving the match. Possible values are:
- "PLAYER_LEFT" - The player chose to leave the room..
- "GAME_LEFT" - The game chose to remove the player from the room.
- "REALTIME_ABANDONED" - The player switched to another application and abandoned the room.
- "REALTIME_PEER_CONNECTION_FAILURE" - The client was unable to establish a connection to other peer(s).
- "REALTIME_SERVER_CONNECTION_FAILURE" - The client was unable to communicate with the server.
- "REALTIME_SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- "REALTIME_TIMEOUT" - The client timed out while waiting for a room.
- "REALTIME_CLIENT_DISCONNECTING" - The client disconnects without first calling Leave.
- "REALTIME_SIGN_OUT" - The user signed out of G+ while in the room.
- "REALTIME_GAME_CRASHED" - The game crashed.
- "REALTIME_ROOM_SERVICE_CRASHED" - RoomAndroidService crashed.
- "REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION" - Another client is trying to enter a room.
- "REALTIME_SAME_CLIENT_ROOM_OPERATION" - The same client is trying to enter a new room.
leave_diagnostics: Option<RoomLeaveDiagnostics>
Diagnostics for a player leaving the room.
Trait Implementations
impl RequestValue for RoomLeaveRequest
[src]
impl Default for RoomLeaveRequest
[src]
fn default() -> RoomLeaveRequest
[src]
impl Clone for RoomLeaveRequest
[src]
fn clone(&self) -> RoomLeaveRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for RoomLeaveRequest
[src]
impl Serialize for RoomLeaveRequest
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for RoomLeaveRequest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for RoomLeaveRequest
impl Unpin for RoomLeaveRequest
impl Sync for RoomLeaveRequest
impl UnwindSafe for RoomLeaveRequest
impl RefUnwindSafe for RoomLeaveRequest
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,