#[non_exhaustive]pub struct TimeTrialDataSet {
pub vehicle_index: usize,
pub team_id: u8,
pub lap_time_ms: u32,
pub sector1_time_ms: u32,
pub sector2_time_ms: u32,
pub sector3_time_ms: u32,
pub traction_control: TractionControl,
pub gearbox_assist: GearboxAssist,
pub anti_lock_brakes: bool,
pub equal_car_performance: bool,
pub custom_setup: bool,
pub valid: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vehicle_index: usizeIndex of the car this data set relates to.
team_id: u8Team’s ID.
See team_id for possible values.
lap_time_ms: u32Lap time in milliseconds.
sector1_time_ms: u32Sector 1 time in milliseconds.
sector2_time_ms: u32Sector 2 time in milliseconds.
sector3_time_ms: u32Sector 3 time in milliseconds.
traction_control: TractionControlType of traction control assist enabled.
gearbox_assist: GearboxAssistType of gearbox assist enabled.
anti_lock_brakes: boolWhether ABS is enabled.
equal_car_performance: boolWhether equal car performance is enabled.
custom_setup: boolWhether custom setup is in use.
valid: boolWhether this lap is valid.
Trait Implementations§
Source§impl BinRead for TimeTrialDataSet
impl BinRead for TimeTrialDataSet
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 Clone for TimeTrialDataSet
impl Clone for TimeTrialDataSet
Source§fn clone(&self) -> TimeTrialDataSet
fn clone(&self) -> TimeTrialDataSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeTrialDataSet
impl Debug for TimeTrialDataSet
Source§impl<'de> Deserialize<'de> for TimeTrialDataSet
impl<'de> Deserialize<'de> for TimeTrialDataSet
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 TimeTrialDataSet
impl Ord for TimeTrialDataSet
Source§fn cmp(&self, other: &TimeTrialDataSet) -> Ordering
fn cmp(&self, other: &TimeTrialDataSet) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeTrialDataSet
impl PartialEq for TimeTrialDataSet
Source§impl PartialOrd for TimeTrialDataSet
impl PartialOrd for TimeTrialDataSet
Source§impl ReadEndian for TimeTrialDataSet
impl ReadEndian for TimeTrialDataSet
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for TimeTrialDataSet
impl Serialize for TimeTrialDataSet
impl Copy for TimeTrialDataSet
impl Eq for TimeTrialDataSet
impl StructuralPartialEq for TimeTrialDataSet
Auto Trait Implementations§
impl Freeze for TimeTrialDataSet
impl RefUnwindSafe for TimeTrialDataSet
impl Send for TimeTrialDataSet
impl Sync for TimeTrialDataSet
impl Unpin for TimeTrialDataSet
impl UnwindSafe for TimeTrialDataSet
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