[][src]Struct f1_api::packet::event::EventPacket

pub struct EventPacket { /* fields omitted */ }

Packet containing details about an event that occurred in the session

The modern F1 games send event packets with details about events that occur in a session. The frequency with which these packets are sent is not fixed, but rather packets are sent whenever events occur.

Methods

impl EventPacket[src]

pub fn new(header: Header, event: Event) -> Self[src]

Constructs a new EventPacket.

impl EventPacket[src]

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

Returns the packet header prefixing the event packet.

pub fn event(&self) -> &Event[src]

Returns the event from the event packet.

Trait Implementations

impl Clone for EventPacket[src]

impl Copy for EventPacket[src]

impl Debug for EventPacket[src]

impl Display for EventPacket[src]

impl Eq for EventPacket[src]

impl Hash for EventPacket[src]

impl Ord for EventPacket[src]

impl PartialEq<EventPacket> for EventPacket[src]

impl PartialOrd<EventPacket> for EventPacket[src]

impl StructuralEq for EventPacket[src]

impl StructuralPartialEq for EventPacket[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> ToString for T where
    T: Display + ?Sized
[src]

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.