pub struct SimState {
pub game: Game,
pub shared: scsTelemetryMap_t,
}Fields§
§game: GameImplementations§
Trait Implementations§
Source§impl Moment for SimState
impl Moment for SimState
fn vehicle_gear(&self) -> Option<i8>
fn vehicle_velocity(&self) -> Option<Velocity>
fn vehicle_engine_rotation_speed(&self) -> Option<AngularVelocity>
fn vehicle_max_engine_rotation_speed(&self) -> Option<AngularVelocity>
Source§fn vehicle_brand_id(&self) -> Option<Cow<'_, str>>
fn vehicle_brand_id(&self) -> Option<Cow<'_, str>>
ID that should be consistent to all vehicles of the same brand in the specific sim. Read more
Source§fn vehicle_model_id(&self) -> Option<Cow<'_, str>>
fn vehicle_model_id(&self) -> Option<Cow<'_, str>>
ID that describes a specific model of a car in the specific sim. Read more
Source§fn vehicle_unique_id(&self) -> Option<Cow<'_, str>>
fn vehicle_unique_id(&self) -> Option<Cow<'_, str>>
ID that uniquely identifies the current vehicle brand and model. Read more
Source§fn is_right_turn_indicator_on(&self) -> Option<bool>
fn is_right_turn_indicator_on(&self) -> Option<bool>
Right turn indicator is enabled. Read more
Source§fn is_ignition_on(&self) -> Option<bool>
fn is_ignition_on(&self) -> Option<bool>
Check if the ignition is on.
Source§fn pedals_raw(&self) -> Option<Pedals>
fn pedals_raw(&self) -> Option<Pedals>
Pedal input directly from the inputs.
fn is_pit_limiter_engaged(&self) -> Option<bool>
fn is_vehicle_in_pit_lane(&self) -> Option<bool>
Source§fn is_vehicle_left(&self) -> Option<bool>
fn is_vehicle_left(&self) -> Option<bool>
Check if there is a vehicle to the left of the driver.
Source§fn is_vehicle_right(&self) -> Option<bool>
fn is_vehicle_right(&self) -> Option<bool>
Check if there is a vehicle to the right of the driver.
fn shift_point(&self) -> Option<AngularVelocity>
fn flags(&self) -> Option<RacingFlags>
Source§fn is_starter_on(&self) -> Option<bool>
fn is_starter_on(&self) -> Option<bool>
Check if the starter motor is engaged.
Auto Trait Implementations§
impl Freeze for SimState
impl RefUnwindSafe for SimState
impl Send for SimState
impl Sync for SimState
impl Unpin for SimState
impl UnsafeUnpin for SimState
impl UnwindSafe for SimState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more