pub enum Region {
    USEast,
    USWest,
    SouthAmerica,
    Europe,
    Asia,
    Australia,
    MiddleEast,
    Africa,
    All,
}
Expand description

Region enum to restrict the servers region the query searches for

Reference

Region EnumRegionByte
Region::USEastUS East coast0x00
Region::USWestUS West coast0x01
Region::SouthAmericaSouth America0x02
Region::EuropeEurope0x03
Region::AsiaAsia0x04
Region::AustraliaAustralia0x05
Region::MiddleEastMiddle East0x06
Region::AfricaAfrica0x07
Region::AllRest of the world0xFF

Variants

USEast

USWest

SouthAmerica

Europe

Asia

Australia

MiddleEast

Africa

All

Implementations

Return raw u8 byte code of its specified region

Example
use msq::Region;

let region_hex_str = format!("{:#04x}", Region::All.as_u8());
assert_eq!(&region_hex_str, "0xff");

let region_hex_str = format!("{:#04x}", Region::Europe.as_u8());
assert_eq!(&region_hex_str, "0x03");

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.