pub struct DriverStatus {
pub progress: DriverProgress,
pub heading_alignment: f32,
pub along_speed: f32,
pub wrong_way: Option<WrongWayReason>,
pub recovery: DriverRecovery,
pub stuck_seconds: f32,
pub reverse_seconds_remaining: f32,
}Expand description
Finite, allocation-free diagnostics for the last successful positive tick.
Timers are measured after that tick; Reversing describes the returned
controls even on the final reverse tick when the remaining time reaches zero.
See RacingDriver::status for an example.
Fields§
§progress: DriverProgress§heading_alignment: f32Normalized forward dotted with the nearest segment’s direction, -1..=1.
along_speed: f32Velocity dotted with that direction, in world units per second.
wrong_way: Option<WrongWayReason>§recovery: DriverRecovery§stuck_seconds: f32Consecutive low-speed seconds while ordinary controls demand movement.
reverse_seconds_remaining: f32Remaining time in the current one-second reverse attempt.
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 PartialEq for DriverStatus
impl PartialEq for DriverStatus
impl Copy 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