[][src]Struct f1_api::packet::status::CarStatusPacket

pub struct CarStatusPacket { /* fields omitted */ }

Packet containing the status of each car in the session

The F1 games publish data on the status of each car in the session at a rate that can be configured in the in-game settings.

Methods

impl CarStatusPacket[src]

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

Constructs a new CarStatusPacket.

impl CarStatusPacket[src]

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

Returns the packet header prefixing the car status packet.

pub fn statuses(&self) -> &Vec<CarStatus>[src]

Returns the status of each car in the session.

Trait Implementations

impl Clone for CarStatusPacket[src]

impl Debug for CarStatusPacket[src]

impl PartialEq<CarStatusPacket> for CarStatusPacket[src]

impl PartialOrd<CarStatusPacket> for CarStatusPacket[src]

impl StructuralPartialEq for CarStatusPacket[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.