#[non_exhaustive]pub struct CarSetupData {Show 23 fields
pub front_wing: u8,
pub rear_wing: u8,
pub on_throttle: u8,
pub off_throttle: u8,
pub front_camber: f32,
pub rear_camber: f32,
pub front_toe: f32,
pub rear_toe: f32,
pub front_suspension: u8,
pub rear_suspension: u8,
pub front_anti_roll_bar: u8,
pub rear_anti_roll_bar: u8,
pub front_suspension_height: u8,
pub rear_suspension_height: u8,
pub brake_pressure: u8,
pub brake_bias: u8,
pub engine_braking: u8,
pub rear_left_tyre_pressure: f32,
pub rear_right_tyre_pressure: f32,
pub front_left_tyre_pressure: f32,
pub front_right_tyre_pressure: f32,
pub ballast: u8,
pub fuel_load: f32,
}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.front_wing: u8Front wing aero.
rear_wing: u8Rear wing aero.
on_throttle: u8Differential adjustment on throttle (percentage).
off_throttle: u8Differential adjustment off throttle (percentage).
front_camber: f32Front camber angle (suspension geometry).
rear_camber: f32Rear camber angle (suspension geometry).
front_toe: f32Front toe angle (suspension geometry).
rear_toe: f32Rear toe angle (suspension geometry).
front_suspension: u8Front suspension.
rear_suspension: u8Rear suspension.
front_anti_roll_bar: u8Front anti-roll bar.
rear_anti_roll_bar: u8Rear anti-roll bar.
front_suspension_height: u8Front ride height.
rear_suspension_height: u8Rear ride height.
brake_pressure: u8Brake pressure (percentage).
brake_bias: u8Brake bias (percentage).
engine_braking: u8Engine braking (percentage). Available from the 2024 format onwards.
rear_left_tyre_pressure: f32Rear left tyre pressure.
rear_right_tyre_pressure: f32Rear right tyre pressure.
front_left_tyre_pressure: f32Front left tyre pressure.
front_right_tyre_pressure: f32Front right tyre pressure.
ballast: u8Ballast.
fuel_load: f32Fuel load.
Trait Implementations§
Source§impl BinRead for CarSetupData
impl BinRead for CarSetupData
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 CarSetupData
impl Clone for CarSetupData
Source§fn clone(&self) -> CarSetupData
fn clone(&self) -> CarSetupData
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 CarSetupData
impl Debug for CarSetupData
Source§impl<'de> Deserialize<'de> for CarSetupData
impl<'de> Deserialize<'de> for CarSetupData
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 PartialEq for CarSetupData
impl PartialEq for CarSetupData
Source§impl PartialOrd for CarSetupData
impl PartialOrd for CarSetupData
Source§impl ReadEndian for CarSetupData
impl ReadEndian for CarSetupData
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for CarSetupData
impl Serialize for CarSetupData
impl Copy for CarSetupData
impl StructuralPartialEq for CarSetupData
Auto Trait Implementations§
impl Freeze for CarSetupData
impl RefUnwindSafe for CarSetupData
impl Send for CarSetupData
impl Sync for CarSetupData
impl Unpin for CarSetupData
impl UnwindSafe for CarSetupData
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