Enum simconnect_sdk::ClientEvent
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum ClientEvent {
ThrottleFull,
Brakes,
BrakesLeft,
AxisLeftBrakeSet,
}
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
Set throttles max.
Brakes
Increment brake pressure. Note: These are simulated spring-loaded toe brakes, which will bleed back to zero over time.
BrakesLeft
Increments left brake pressure. Note: This is a simulated spring-loaded toe brake, which will bleed back to zero over time.
AxisLeftBrakeSet
Sets left brake position from axis controller (e.g. joystick). -16383 (0 brakes) to +16383 (max brakes).
Trait Implementations
sourceimpl Clone for ClientEvent
impl Clone for ClientEvent
sourcefn clone(&self) -> ClientEvent
fn clone(&self) -> ClientEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClientEvent
impl Debug for ClientEvent
sourceimpl PartialEq<ClientEvent> for ClientEvent
impl PartialEq<ClientEvent> for ClientEvent
sourcefn eq(&self, other: &ClientEvent) -> bool
fn eq(&self, other: &ClientEvent) -> bool
sourceimpl TryFrom<u32> for ClientEvent
impl TryFrom<u32> for ClientEvent
type Error = TryFromPrimitiveError<ClientEvent>
type Error = TryFromPrimitiveError<ClientEvent>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ClientEvent
impl TryFromPrimitive for ClientEvent
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ClientEvent
impl Eq for ClientEvent
impl StructuralEq for ClientEvent
impl StructuralPartialEq for ClientEvent
Auto Trait Implementations
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnwindSafe for ClientEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more