Enum airmash_protocol::FlagCode [] [src]

pub enum FlagCode {
    SyrianArabRepublic,
    Thailand,
    Turkmenistan,
    Tunisia,
    Turkey,
    TrinidadandTobago,
    Taiwan,
    Tanzania,
    Ukraine,
    UnitedNations,
    UnitedStates,
    Uruguay,
    Uzbekistan,
    Venezuela,
    VietNam,
    PuertoRico,
    Portugal,
    Paraguay,
    Qatar,
    Rainbow,
    Romania,
    Serbia,
    RussianFederation,
    SaudiArabia,
    Sweden,
    Singapore,
    Slovenia,
    Slovakia,
    SanMarino,
    Macedonia,
    Macao,
    Malta,
    Mexico,
    Malaysia,
    Nigeria,
    Netherlands,
    Norway,
    Nepal,
    NewZealand,
    Oman,
    Panama,
    Peru,
    Japan,
    DPRK,
    SouthKorea,
    Kuwait,
    Kazakhstan,
    Lebanon,
    Liechtenstein,
    SriLanka,
    Lithuania,
    Luxembourg,
    Latvia,
    Honduras,
    Croatia,
    Hungary,
    Indonesia,
    Ireland,
    Israel,
    IsleofMan,
    ImperialJapan,
    India,
    Iraq,
    Germany,
    Denmark,
    DominicanRepublic,
    Algeria,
    Ecuador,
    Estonia,
    Egypt,
    Spain,
    EuropeanUnion,
    Bahrain,
    Bolivia,
    Brazil,
    Bhutan,
    Belarus,
    Canada,
    Switzerland,
    Andorra,
    UnitedArabEmirates,
    Albania,
    Armenia,
    Chile,
    Antarctica,
    China,
    Argentina,
    Finland,
    Colombia,
    Austria,
    Iran,
    France,
    Communist,
    Australia,
    LibyanArabJamahiriya,
    Iceland,
    UnitedKingdom,
    Confederate,
    Azerbaijan,
    Morocco,
    Italy,
    Georgia,
    CostaRica,
    BosniaandHerzegovina,
    Philippines,
    Monaco,
    Jamaica,
    Greece,
    Cuba,
    Bangladesh,
    Somalia,
    Pakistan,
    Moldova,
    Jordan,
    Guatemala,
    Cyprus,
    Belgium,
    SouthAfrica,
    ElSalvador,
    Poland,
    Montenegro,
    JollyRogers,
    HongKong,
    CzechRepublic,
    Bulgaria,
}

All the current flags present within the airmash server.

Variants

Methods

impl FlagCode
[src]

[src]

Returns the numeric value that corresponds to the flag code.

This is the value that is actually sent in the serialized packet and is used in the client.

Credit to Bombita for determining the flag -> number mapping. Sources here.

[src]

Return the flag code that corresponds to the numeric value, or None if there is no corresponding flag.

Credit to Bombita for determining the flag -> number mapping. Sources here.

[src]

Get the ISO-2 code associated with the flag (or special codes for non-country flags)

[src]

Get the flag code associated with an ISO-2 country code. (or special codes for non-country flags).

Trait Implementations

impl Copy for FlagCode
[src]

impl Clone for FlagCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FlagCode
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for FlagCode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for FlagCode
[src]

Auto Trait Implementations

impl Send for FlagCode

impl Sync for FlagCode