#[repr(u8)]pub enum SessionType {
Show 13 variants
Unknown = 0,
Practice1 = 1,
Practice2 = 2,
Practice3 = 3,
ShortPractice = 4,
Qualifier1 = 5,
Qualifier2 = 6,
Qualifier3 = 7,
ShortQualifier = 8,
OSQ = 9,
Race = 10,
Formula2Race = 11,
TimeTrial = 12,
}Variants§
Unknown = 0
Practice1 = 1
Practice2 = 2
Practice3 = 3
ShortPractice = 4
Qualifier1 = 5
Qualifier2 = 6
Qualifier3 = 7
ShortQualifier = 8
OSQ = 9
Race = 10
Formula2Race = 11
TimeTrial = 12
Trait Implementations§
Source§impl BinRead for SessionType
impl BinRead for SessionType
Source§type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
Source§fn read_options<R: Read + Seek>(
reader: &mut R,
options: &ReadOptions,
args: Self::Args,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( reader: &mut R, options: &ReadOptions, args: Self::Args, ) -> BinResult<Self>
Read the type from the reader
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read the type from the reader while assuming no arguments have been passed Read more
Source§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 the type from the reader using the specified arguments
fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args, ) -> Result<(), Error>
Source§impl Debug for SessionType
impl Debug for SessionType
Source§impl Default for SessionType
impl Default for SessionType
Source§fn default() -> SessionType
fn default() -> SessionType
Returns the “default value” for a type. Read more
Source§impl TryFrom<u8> for SessionType
impl TryFrom<u8> for SessionType
Source§type Error = TryFromPrimitiveError<SessionType>
type Error = TryFromPrimitiveError<SessionType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SessionType
impl TryFromPrimitive for SessionType
Auto Trait Implementations§
impl Freeze for SessionType
impl RefUnwindSafe for SessionType
impl Send for SessionType
impl Sync for SessionType
impl Unpin for SessionType
impl UnwindSafe for SessionType
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