[−][src]Enum f1_api::packet::event::Event
Events that can occur during the course of a session
The F1 games send event packets whenever a certain event occurs in a session. Depending on the game, only a subset of the defined events may be published. Some events carry a payload that further describes the event. For example, the event declaring the race winner sends with it the vehicle index of said winner.
Variants
The chequered flag signals the end of the race.
DRS is disabled at the beginning of the race, and can be disabled throughout the race in case of poor weather conditions or yellow flags in the DRS activation zone.
DRS gets enabled after the first two laps of a race. In case DRS is disabled during a race, e.g. due to poor weather conditions, it can be re-enabled once the conditions have cleared.
FastestLap(FastestLap)When a driver achieves the fastest lap of the race, the event publishes the driver and their time.
RaceWinner(RaceWinner)At the end of the race, the race winner is announced in an event.
Retirement(Retirement)Drivers can retire from a race, for example after their car suffers technical issues. The retirement is announced as an event with the driver as the payload.
The end of a session is announced in an event.
The start of a session is announced in an event.
TeammatesInPits(TeammateInPits)When a teammate enters the pits, an event carrying their vehicle index is published.
Trait Implementations
impl Clone for Event[src]
impl Copy for Event[src]
impl Debug for Event[src]
impl Default for Event[src]
impl Display for Event[src]
impl Eq for Event[src]
impl Hash for Event[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for Event[src]
fn cmp(&self, other: &Event) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Event> for Event[src]
impl PartialOrd<Event> for Event[src]
fn partial_cmp(&self, other: &Event) -> Option<Ordering>[src]
fn lt(&self, other: &Event) -> bool[src]
fn le(&self, other: &Event) -> bool[src]
fn gt(&self, other: &Event) -> bool[src]
fn ge(&self, other: &Event) -> bool[src]
impl StructuralEq for Event[src]
impl StructuralPartialEq for Event[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,