[][src]Struct f1_telemetry_client::f1_2020::lap::LapData

pub struct LapData {
    pub last_lap_time: Duration,
    pub current_lap_time: Duration,
    pub sector_1_time: Duration,
    pub sector_2_time: Duration,
    pub best_lap_time: Duration,
    pub best_lap_num: u8,
    pub best_lap_sector_1_time: Duration,
    pub best_lap_sector_2_time: Duration,
    pub best_lap_sector_3_time: Duration,
    pub best_overall_sector_1_time: Duration,
    pub best_overall_sector_1_lap_num: u8,
    pub best_overall_sector_2_time: Duration,
    pub best_overall_sector_2_lap_num: u8,
    pub best_overall_sector_3_time: Duration,
    pub best_overall_sector_3_lap_num: u8,
    pub lap_distance: f32,
    pub total_distance: f32,
    pub safety_car_delta: Duration,
    pub car_position: u8,
    pub current_lap_num: u8,
    pub pit_status: PitStatus,
    pub sector: u8,
    pub current_lap_invalid: bool,
    pub penalties: u8,
    pub grid_position: u8,
    pub driver_status: DriverStatus,
    pub result_status: ResultStatus,
}

Fields

last_lap_time: Duration

Last lap time in seconds

current_lap_time: Duration

Current time around the lap in seconds

sector_1_time: Duration

Sector 1 time in milliseconds

sector_2_time: Duration

Sector 2 time in milliseconds

best_lap_time: Duration

Best lap time of the session in seconds

best_lap_num: u8best_lap_sector_1_time: Duration

Sector 1 time of best lap in the session in milliseconds

best_lap_sector_2_time: Duration

Sector 2 time of best lap in the session in milliseconds

best_lap_sector_3_time: Duration

Sector 3 time of best lap in the session in milliseconds

best_overall_sector_1_time: Duration

Best overall sector 1 time of the session in milliseconds

best_overall_sector_1_lap_num: u8best_overall_sector_2_time: Duration

Best overall sector 2 time of the session in milliseconds

best_overall_sector_2_lap_num: u8best_overall_sector_3_time: Duration

Best overall sector 3 time of the session in milliseconds

best_overall_sector_3_lap_num: u8lap_distance: f32total_distance: f32safety_car_delta: Duration

Delta in seconds for safety car

car_position: u8current_lap_num: u8pit_status: PitStatussector: u8current_lap_invalid: boolpenalties: u8grid_position: u8driver_status: DriverStatusresult_status: ResultStatus

Trait Implementations

impl Clone for LapData[src]

impl Copy for LapData[src]

impl Debug for LapData[src]

impl Eq for LapData[src]

impl PartialEq<LapData> for LapData[src]

impl StructuralPartialEq for LapData[src]

Auto Trait Implementations

impl RefUnwindSafe for LapData

impl Send for LapData

impl Sync for LapData

impl Unpin for LapData

impl UnwindSafe for LapData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.