Struct airmash_protocol::server::Login
[−]
[src]
pub struct Login { pub success: bool, pub id: u16, pub team: u16, pub clock: u32, pub token: String, pub ty: PlaneType, pub room: String, pub players: Vec<LoginPlayer>, }
Initial login packet sent to the server.
Fields
success: bool
Whether the login was successful.
id: u16
The id of the just-logged-in player.
team: u16
The team of the just-logged-in player.
clock: u32
Current server clock
token: String
The login token used by the current
player, or "none"
.
ty: PlaneType
The plane that the current player is flying.
room: String
The room that the current player has just logged into.
players: Vec<LoginPlayer>
Data on all players within the current room.
Trait Implementations
impl Clone for Login
[src]
fn clone(&self) -> Login
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more