simconnect-sdk 0.2.1

SimConnect SDK. An opinionated SimConnect Client that encapsulates the C API fully and optimizes for developer experience.
Documentation
1
2
3
4
5
6
use crate::{Object, SimConnect, SimConnectError};

/// Trait to be implemented by objects that can be registered with SimConnect.
pub trait SimConnectObjectExt: Clone + for<'a> TryFrom<&'a Object> {
    fn register(client: &mut SimConnect, id: u32) -> Result<(), SimConnectError>;
}