Struct f1_api::packet::event::TeammateInPits [−][src]
pub struct TeammateInPits { /* fields omitted */ }
Expand description
Payload for teammate in pits event
When a teammate enters the pits, an event is sent carrying the vehicle index of the teammate as its payload.
Examples
// Simplified use in a match statement match event { Event::TeammatesInPits(teammate) => { assert_eq!(0, teammate.vehicle_index()); } }
Implementations
Constructs a new TeammateInPits
.
Returns the index of the teammate who has just entered the pits.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TeammateInPits
impl Send for TeammateInPits
impl Sync for TeammateInPits
impl Unpin for TeammateInPits
impl UnwindSafe for TeammateInPits
Blanket Implementations
Mutably borrows from an owned value. Read more