[][src]Struct f1_api::packet::setup::CarSetupPacket

pub struct CarSetupPacket { /* fields omitted */ }

Packet containing the setups of all cars in the session

The F1 games publish the setup of each car in the session in the car setup packet. In multiplayer sessions, the setups of other players are redacted to prevent anyone from gaining an unfair advantage.

Methods

impl CarSetupPacket[src]

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

Constructs a new CarSetupPacket.

impl CarSetupPacket[src]

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

Returns the packet header prefixing the car setup packet.

pub fn setups(&self) -> &Vec<CarSetup>[src]

Returns the setups of all 20 cars in the session.

Trait Implementations

impl Clone for CarSetupPacket[src]

impl Debug for CarSetupPacket[src]

impl PartialEq<CarSetupPacket> for CarSetupPacket[src]

impl PartialOrd<CarSetupPacket> for CarSetupPacket[src]

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