#[non_exhaustive]#[repr(u32)]pub enum ClientEvent {
ThrottleFull = 128,
Brakes = 129,
BrakesLeft = 130,
AxisLeftBrakeSet = 131,
}
Expand description
SimConnect Client Event.
WIP. As defined by https://www.prepar3d.com/SDKv5/sdk/references/variables/event_ids.html.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ThrottleFull = 128
Set throttles max.
Brakes = 129
Increment brake pressure. Note: These are simulated spring-loaded toe brakes, which will bleed back to zero over time.
BrakesLeft = 130
Increments left brake pressure. Note: This is a simulated spring-loaded toe brake, which will bleed back to zero over time.
AxisLeftBrakeSet = 131
Sets left brake position from axis controller (e.g. joystick). -16383 (0 brakes) to +16383 (max brakes).
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§fn clone(&self) -> ClientEvent
fn clone(&self) -> ClientEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientEvent
impl Debug for ClientEvent
Source§impl PartialEq for ClientEvent
impl PartialEq for ClientEvent
Source§impl TryFrom<u32> for ClientEvent
impl TryFrom<u32> for ClientEvent
Source§type Error = TryFromPrimitiveError<ClientEvent>
type Error = TryFromPrimitiveError<ClientEvent>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ClientEvent
impl TryFromPrimitive for ClientEvent
impl Copy for ClientEvent
impl Eq for ClientEvent
impl StructuralPartialEq for ClientEvent
Auto Trait Implementations§
impl Freeze for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnwindSafe for ClientEvent
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