pub enum DriverRecovery {
Driving,
WaitingForTraffic,
Stalled,
Reversing,
}Expand description
Explanation of the controls returned on the most recent tick.
See RacingDriver::status for an example.
Variants§
Driving
Ordinary pursuit, including a deliberately zero target speed.
WaitingForTraffic
Low speed is explained by a nearby rival’s speed limit; no stuck time
accumulates while that limit is at or below cruise * 0.02.
Stalled
Speed is below cruise * 0.02 despite a higher requested speed.
Reversing
A bounded reverse attempt after three simulated seconds stalled.
Trait Implementations§
Source§impl Clone for DriverRecovery
impl Clone for DriverRecovery
Source§fn clone(&self) -> DriverRecovery
fn clone(&self) -> DriverRecovery
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 DriverRecovery
impl Debug for DriverRecovery
Source§impl PartialEq for DriverRecovery
impl PartialEq for DriverRecovery
impl Copy for DriverRecovery
impl Eq for DriverRecovery
impl StructuralPartialEq for DriverRecovery
Auto Trait Implementations§
impl Freeze for DriverRecovery
impl RefUnwindSafe for DriverRecovery
impl Send for DriverRecovery
impl Sync for DriverRecovery
impl Unpin for DriverRecovery
impl UnwindSafe for DriverRecovery
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