pub struct Session {Show 43 fields
pub header: Header,
pub weather: Weather,
pub track_temperature: i8,
pub air_temperature: i8,
pub total_laps: u8,
pub track_length: u16,
pub session_type: SessionType,
pub track: Track,
pub formula: Formula,
pub session_time_left: u16,
pub session_duration: u16,
pub pit_speed_limit: u8,
pub game_paused: u8,
pub is_spectating: u8,
pub spectator_car_index: u8,
pub sli_pro_native_support: u8,
pub number_of_marshal_zones: u8,
pub marshal_zones: Vec<MarshalZone>,
pub safety_car_status: SafetyCarStatus,
pub network_game: bool,
pub number_of_weather_forecast_samples: u8,
pub weather_forecast_samples: Vec<WeatherForecastSample>,
pub forecast_accuracy: ForecastAccuracy,
pub ai_difficulty: u8,
pub season_link_identifier: u32,
pub weekend_link_identifier: u32,
pub session_link_identifier: u32,
pub pit_stop_window_ideal_lap: u8,
pub pit_stop_window_latest_lap: u8,
pub pit_stop_rejoin_position: u8,
pub steering_assist: bool,
pub braking_assist: BrakingAssist,
pub gearbox_assist: GearboxAssist,
pub pit_assist: bool,
pub pit_release_assist: bool,
pub ers_assist: bool,
pub drs_assist: bool,
pub dynamic_racing_line: RacingLine,
pub dynamic_racing_line_type: RacingLineType,
pub game_mode: GameMode,
pub rule_set: RuleSet,
pub time_of_day: u32,
pub session_length: SessionLength,
}Fields§
§header: Header§weather: Weather§track_temperature: i8§air_temperature: i8§total_laps: u8§track_length: u16§session_type: SessionType§track: Track§formula: Formula§session_time_left: u16§session_duration: u16§pit_speed_limit: u8§game_paused: u8§is_spectating: u8§spectator_car_index: u8§sli_pro_native_support: u8§number_of_marshal_zones: u8§marshal_zones: Vec<MarshalZone>§safety_car_status: SafetyCarStatus§network_game: bool§number_of_weather_forecast_samples: u8§weather_forecast_samples: Vec<WeatherForecastSample>§forecast_accuracy: ForecastAccuracy§ai_difficulty: u8§season_link_identifier: u32§weekend_link_identifier: u32§session_link_identifier: u32§pit_stop_window_ideal_lap: u8§pit_stop_window_latest_lap: u8§pit_stop_rejoin_position: u8§steering_assist: bool§braking_assist: BrakingAssist§gearbox_assist: GearboxAssist§pit_assist: bool§pit_release_assist: bool§ers_assist: bool§drs_assist: bool§dynamic_racing_line: RacingLine§dynamic_racing_line_type: RacingLineType§game_mode: GameMode§rule_set: RuleSet§time_of_day: u32§session_length: SessionLengthTrait Implementations§
Source§impl BinRead for Session
impl BinRead for Session
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>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binread_generated_var_reader: &mut R, __binread_generated_var_options: &ReadOptions, __binread_generated_var_arguments: 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>
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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