[][src]Struct f1_api::packet::lap::LapPacket

pub struct LapPacket { /* fields omitted */ }

Packet containing lap data for all 20 cars in a session

The F1 games publish a lap packet that contains data on all 20 cars in a session. The packet is sent at a fixed interval that can be configured in the game.

Methods

impl LapPacket[src]

pub fn new(header: Header, laps: Vec<Lap>) -> Self[src]

Constructs a new LapPacket.

impl LapPacket[src]

pub fn header(&self) -> &Header[src]

Returns the packet header prefixing the lap data packet.

pub fn laps(&self) -> &Vec<Lap>[src]

Returns the laps for all 20 cars in a session.

Trait Implementations

impl Clone for LapPacket[src]

impl Debug for LapPacket[src]

impl PartialEq<LapPacket> for LapPacket[src]

impl PartialOrd<LapPacket> for LapPacket[src]

impl StructuralPartialEq for LapPacket[src]

Auto Trait Implementations

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.