#[non_exhaustive]pub enum GameMode {
Show 22 variants
EventMode = 0,
GrandPrix = 3,
GrandPrix2023 = 4,
TimeTrial = 5,
Splitscreen = 6,
OnlineCustom = 7,
OnlineLeague = 8,
CareerInvitational = 11,
ChampionshipInvitational = 12,
Championship = 13,
OnlineChampionship = 14,
OnlineWeeklyEvent = 15,
BrakingPoint2023 = 17,
Career2022 = 19,
OnlineCareer2022 = 20,
Career2023 = 21,
OnlineCareer2023 = 22,
DriverCareer2024 = 23,
OnlineCareer2024 = 24,
MyTeamCareer2024 = 25,
CuratedCareer2024 = 26,
Benchmark = 127,
}Expand description
Game mode that’s currently in use. Represents a u8.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EventMode = 0
GrandPrix = 3
GrandPrix2023 = 4
TimeTrial = 5
Splitscreen = 6
OnlineCustom = 7
OnlineLeague = 8
CareerInvitational = 11
ChampionshipInvitational = 12
Championship = 13
OnlineChampionship = 14
OnlineWeeklyEvent = 15
BrakingPoint2023 = 17
Career2022 = 19
OnlineCareer2022 = 20
Career2023 = 21
OnlineCareer2023 = 22
DriverCareer2024 = 23
OnlineCareer2024 = 24
MyTeamCareer2024 = 25
CuratedCareer2024 = 26
Benchmark = 127
Trait Implementations§
Source§impl BinRead for GameMode
impl BinRead for GameMode
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl<'de> Deserialize<'de> for GameMode
impl<'de> Deserialize<'de> for GameMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for GameMode
impl Ord for GameMode
Source§impl PartialOrd for GameMode
impl PartialOrd for GameMode
Source§impl ReadEndian for GameMode
impl ReadEndian for GameMode
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl Copy for GameMode
impl Eq for GameMode
impl StructuralPartialEq for GameMode
Auto Trait Implementations§
impl Freeze for GameMode
impl RefUnwindSafe for GameMode
impl Send for GameMode
impl Sync for GameMode
impl Unpin for GameMode
impl UnwindSafe for GameMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more