Struct airmash_protocol::client::Login [] [src]

pub struct Login {
    pub protocol: u8,
    pub name: String,
    pub session: String,
    pub horizon_x: u16,
    pub horizon_y: u16,
    pub flag: String,
}

Initial packet sent to log in to the server.

This is sent to the server when the player first joins.

Fields

The current protocol version. Should always be 5 as of the writing of this documentation.

The name that the player wishes to be called on the server. The actual name of the player given by the server will be returned in the Login packet returned by the server.

A session token for the current player. This is how a player logs into the server. If the player logging in wishes to be associated with an account, this must be set. Otherwise, "none" works to avoid being given an account.

Theoretically should set the size of the horizon beyond which players are not sent to the server. In practice doesn't appear to do anything.

Theoretically should set the size of the horizon beyond which players are not sent to the server. In practice doesn't appear to do anything.

The flag of the player, it should be a 2-letter ISO country code corresponding to the country with the desired flag.

Trait Implementations

impl Clone for Login
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Login
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Login

impl Sync for Login