pub enum DriverStatus {
InGarage,
FlyingLap,
InLap,
OutLap,
OnTrack,
}
Expand description
Statuses a driver can have during a lap
Variants§
InGarage
The driver is still in the garage, and has not left it yet.
FlyingLap
The driver is on a flying lap, and cars that are on an in- or out-lap have to give room.
InLap
The driver is on an in-lap, i.e. on the way to the pits. The in-lap is often used to cool the car down, so the driver might be going slower than normal.
OutLap
The driver is on an out-lap. The out-lap is used to get heat into the tires and breaks to optimize them for the following flying lap.
OnTrack
The driver is on track, but not on a special lap. This is the case during a race or practice session, where drivers do many laps in a row.
Trait Implementations§
Source§impl Clone for DriverStatus
impl Clone for DriverStatus
Source§fn clone(&self) -> DriverStatus
fn clone(&self) -> DriverStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DriverStatus
impl Debug for DriverStatus
Source§impl Default for DriverStatus
impl Default for DriverStatus
Source§impl Hash for DriverStatus
impl Hash for DriverStatus
Source§impl Ord for DriverStatus
impl Ord for DriverStatus
Source§fn cmp(&self, other: &DriverStatus) -> Ordering
fn cmp(&self, other: &DriverStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DriverStatus
impl PartialEq for DriverStatus
Source§impl PartialOrd for DriverStatus
impl PartialOrd for DriverStatus
impl Copy for DriverStatus
impl Eq for DriverStatus
impl StructuralPartialEq for DriverStatus
Auto Trait Implementations§
impl Freeze for DriverStatus
impl RefUnwindSafe for DriverStatus
impl Send for DriverStatus
impl Sync for DriverStatus
impl Unpin for DriverStatus
impl UnwindSafe for DriverStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more