#[non_exhaustive]pub struct F1PacketSessionHistory {
pub vehicle_index: usize,
pub num_laps: usize,
pub num_tyre_stints: usize,
pub best_lap_time_lap_num: usize,
pub best_sector1_lap_num: usize,
pub best_sector2_lap_num: usize,
pub best_sector3_lap_num: usize,
pub lap_history_data: Vec<LapHistoryData>,
pub tyre_stint_history_data: Vec<TyreStintHistoryData>,
}Expand description
Packet detailing lap and tyre data history for a given driver in the session.
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 packet refers to.
num_laps: usizeNumber of laps in the data (including the current one).
num_tyre_stints: usizeNumber of tyre stints in the data (including the current one).
best_lap_time_lap_num: usizeNumber of the lap the best lap time was achieved on.
best_sector1_lap_num: usizeNumber of the lap the best sector 1 time was achieved on.
best_sector2_lap_num: usizeNumber of the lap the best sector 2 time was achieved on.
best_sector3_lap_num: usizeNumber of the lap the best sector 3 time was achieved on.
lap_history_data: Vec<LapHistoryData>Lap history. Should have a size equal to
num_laps.
tyre_stint_history_data: Vec<TyreStintHistoryData>Tyre stint history.
Should have a size equal to
num_tyre_stints.
Trait Implementations§
Source§impl BinRead for F1PacketSessionHistory
impl BinRead for F1PacketSessionHistory
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 F1PacketSessionHistory
impl Clone for F1PacketSessionHistory
Source§fn clone(&self) -> F1PacketSessionHistory
fn clone(&self) -> F1PacketSessionHistory
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 F1PacketSessionHistory
impl Debug for F1PacketSessionHistory
Source§impl<'de> Deserialize<'de> for F1PacketSessionHistory
impl<'de> Deserialize<'de> for F1PacketSessionHistory
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 F1PacketSessionHistory
impl PartialEq for F1PacketSessionHistory
Source§impl PartialOrd for F1PacketSessionHistory
impl PartialOrd for F1PacketSessionHistory
Source§impl ReadEndian for F1PacketSessionHistory
impl ReadEndian for F1PacketSessionHistory
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for F1PacketSessionHistory
impl Serialize for F1PacketSessionHistory
impl StructuralPartialEq for F1PacketSessionHistory
Auto Trait Implementations§
impl Freeze for F1PacketSessionHistory
impl RefUnwindSafe for F1PacketSessionHistory
impl Send for F1PacketSessionHistory
impl Sync for F1PacketSessionHistory
impl Unpin for F1PacketSessionHistory
impl UnwindSafe for F1PacketSessionHistory
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