โน๏ธ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | FAIL | download_stamp > now() - 6 MONTH | 7 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html |
| Last Crawled | 2025-09-10 02:04:42 (7 months ago) |
| First Indexed | not set |
| HTTP Status Code | 200 |
| Meta Title | SimConnect in msfs::sim_connect - Rust |
| Meta Description | A SimConnect session. This provides access to data within the MSFS sim. |
| Meta Canonical | null |
| Boilerpipe Text | Map a Prepar3D event to a specific ID. If mask is true, the sim itself
will ignore the event, and only this SimConnect instance will receive it. |
| Markdown | ## [msfs](https://flybywiresim.github.io/msfs-rs/msfs/index.html)0\.1.0
## [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html)
### [Methods](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#implementations)
- [ai\_create\_non\_atc\_aircraft](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.ai_create_non_atc_aircraft "ai_create_non_atc_aircraft")
- [ai\_create\_parked\_atc\_aircraft](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.ai_create_parked_atc_aircraft "ai_create_parked_atc_aircraft")
- [ai\_remove\_object](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.ai_remove_object "ai_remove_object")
- [call\_dispatch](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.call_dispatch "call_dispatch")
- [create\_client\_data](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.create_client_data "create_client_data")
- [get\_client\_area](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.get_client_area "get_client_area")
- [load\_flight](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.load_flight "load_flight")
- [load\_flight\_plan](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.load_flight_plan "load_flight_plan")
- [map\_client\_event\_to\_sim\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.map_client_event_to_sim_event "map_client_event_to_sim_event")
- [open](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.open "open")
- [request\_client\_data](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.request_client_data "request_client_data")
- [request\_data\_on\_sim\_object](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.request_data_on_sim_object "request_data_on_sim_object")
- [request\_data\_on\_sim\_object\_type](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.request_data_on_sim_object_type "request_data_on_sim_object_type")
- [save\_flight](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.save_flight "save_flight")
- [set\_client\_data](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.set_client_data "set_client_data")
- [set\_data\_on\_sim\_object](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.set_data_on_sim_object "set_data_on_sim_object")
- [set\_system\_event\_state](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.set_system_event_state "set_system_event_state")
- [subscribe\_to\_system\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.subscribe_to_system_event "subscribe_to_system_event")
- [transmit\_client\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.transmit_client_event "transmit_client_event")
- [transmit\_client\_event\_ex1](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.transmit_client_event_ex1 "transmit_client_event_ex1")
- [unsubscribe\_from\_system\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.unsubscribe_from_system_event "unsubscribe_from_system_event")
### [Trait Implementations](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#trait-implementations)
- [Debug](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Debug-for-SimConnect%3C'_%3E "Debug")
- [Drop](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Drop-for-SimConnect%3C'_%3E "Drop")
### [Auto Trait Implementations](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#synthetic-implementations)
- [!RefUnwindSafe](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-RefUnwindSafe-for-SimConnect%3C'a%3E "!RefUnwindSafe")
- [!Send](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Send-for-SimConnect%3C'a%3E "!Send")
- [!Sync](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Sync-for-SimConnect%3C'a%3E "!Sync")
- [!UnwindSafe](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-UnwindSafe-for-SimConnect%3C'a%3E "!UnwindSafe")
- [Freeze](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Freeze-for-SimConnect%3C'a%3E "Freeze")
- [Unpin](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Unpin-for-SimConnect%3C'a%3E "Unpin")
### [Blanket Implementations](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#blanket-implementations)
- [Any](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Any-for-T "Any")
- [Borrow\<T\>](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Borrow%3CT%3E-for-T "Borrow<T>")
- [BorrowMut\<T\>](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-BorrowMut%3CT%3E-for-T "BorrowMut<T>")
- [From\<T\>](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-From%3CT%3E-for-T "From<T>")
- [Into\<U\>](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Into%3CU%3E-for-T "Into<U>")
- [TryFrom\<U\>](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-TryFrom%3CU%3E-for-T "TryFrom<U>")
- [TryInto\<U\>](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-TryInto%3CU%3E-for-T "TryInto<U>")
## [In msfs::sim\_connect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/index.html)
[msfs](https://flybywiresim.github.io/msfs-rs/msfs/index.html)::
[sim\_connect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/index.html)
# Struct SimConnectCopy item path
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#52-59)
```
pub struct SimConnect<'a> { /* private fields */ }
```
Expand description
A SimConnect session. This provides access to data within the MSFS sim.
## Implementations[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#implementations)
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#67-592)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-SimConnect%3C'a%3E)
### impl\<'a\> [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#69-96)
#### pub fn [open](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.open)\<F\>(name: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), callback: F) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[Pin](https://doc.rust-lang.org/1.85.0/core/pin/struct.Pin.html "struct core::pin::Pin")\<[Box](https://doc.rust-lang.org/1.85.0/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")\<[SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>\>\>\>where F: [FnMut](https://doc.rust-lang.org/1.85.0/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")(\&mut [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'\_\>, [SimConnectRecv](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/enum.SimConnectRecv.html "enum msfs::sim_connect::SimConnectRecv")\<'\_\>) + 'a,
Send a request to the Microsoft Flight Simulator server to open up communications with a new client.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#99-107)
#### pub fn [call\_dispatch](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.call_dispatch)(\&mut self) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Used to process the next SimConnect message received. Only needed when not using the gauge API.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#199-216)
#### pub fn [set\_data\_on\_sim\_object](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.set_data_on_sim_object)\<T: [DataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.DataDefinition.html "trait msfs::sim_connect::DataDefinition")\>( \&mut self, object\_id: [SIMCONNECT\_OBJECT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_OBJECT_ID.html "type msfs::sys::SIMCONNECT_OBJECT_ID"), data: [\&T](https://doc.rust-lang.org/1.85.0/std/primitive.reference.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Make changes to the data properties of an object.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#220-236)
#### pub fn [request\_data\_on\_sim\_object\_type](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.request_data_on_sim_object_type)\<T: [DataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.DataDefinition.html "trait msfs::sim_connect::DataDefinition")\>( \&mut self, request\_id: [SIMCONNECT\_DATA\_REQUEST\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_DATA_REQUEST_ID.html "type msfs::sys::SIMCONNECT_DATA_REQUEST_ID"), radius: [DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD"), type: [SIMCONNECT\_SIMOBJECT\_TYPE](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_SIMOBJECT_TYPE.html "type msfs::sys::SIMCONNECT_SIMOBJECT_TYPE"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Retrieve information about simulation objects of a given type that are within a specified radius of the userโs aircraft.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#239-260)
#### pub fn [request\_data\_on\_sim\_object](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.request_data_on_sim_object)\<T: [DataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.DataDefinition.html "trait msfs::sim_connect::DataDefinition")\>( \&mut self, request\_id: [SIMCONNECT\_DATA\_REQUEST\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_DATA_REQUEST_ID.html "type msfs::sys::SIMCONNECT_DATA_REQUEST_ID"), object\_id: [SIMCONNECT\_OBJECT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_OBJECT_ID.html "type msfs::sys::SIMCONNECT_OBJECT_ID"), period: [Period](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/enum.Period.html "enum msfs::sim_connect::Period"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Request when the SimConnect client is to receive data values for a specific object
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#264-294)
#### pub fn [map\_client\_event\_to\_sim\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.map_client_event_to_sim_event)( \&mut self, event\_name: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), mask: [bool](https://doc.rust-lang.org/1.85.0/std/primitive.bool.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD")\>
Map a Prepar3D event to a specific ID. If `mask` is true, the sim itself will ignore the event, and only this SimConnect instance will receive it.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#297-313)
#### pub fn [transmit\_client\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.transmit_client_event)( \&mut self, object\_id: [SIMCONNECT\_OBJECT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_OBJECT_ID.html "type msfs::sys::SIMCONNECT_OBJECT_ID"), event\_id: [DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD"), data: [DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Trigger an event, previously mapped with `map_client_event_to_sim_event`
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#315-335)
#### pub fn [transmit\_client\_event\_ex1](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.transmit_client_event_ex1)( \&mut self, object\_id: [SIMCONNECT\_OBJECT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_OBJECT_ID.html "type msfs::sys::SIMCONNECT_OBJECT_ID"), event\_id: [DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD"), data: \[[DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD"); [5](https://doc.rust-lang.org/1.85.0/std/primitive.array.html)\], ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#355-372)
#### pub fn [create\_client\_data](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.create_client_data)\<T: [ClientDataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.ClientDataDefinition.html "trait msfs::sim_connect::ClientDataDefinition")\>( \&mut self, name: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[ClientDataArea](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.ClientDataArea.html "struct msfs::sim_connect::ClientDataArea")\<T\>\>
Allocate a region of memory in the sim with the given `name`. Other SimConnect modules can use the `name` to read data from this memory using `request_client_data`. This memory cannot be deallocated.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#376-385)
#### pub fn [get\_client\_area](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.get_client_area)\<T: [ClientDataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.ClientDataDefinition.html "trait msfs::sim_connect::ClientDataDefinition")\>( \&mut self, name: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[ClientDataArea](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.ClientDataArea.html "struct msfs::sim_connect::ClientDataArea")\<T\>\>
Create a handle to a region of memory allocated by another module with the given `name`.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#390-411)
#### pub fn [request\_client\_data](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.request_client_data)\<T: [ClientDataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.ClientDataDefinition.html "trait msfs::sim_connect::ClientDataDefinition")\>( \&mut self, request\_id: [SIMCONNECT\_DATA\_REQUEST\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_DATA_REQUEST_ID.html "type msfs::sys::SIMCONNECT_DATA_REQUEST_ID"), name: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Request a pre-allocated region of memory from the sim with the given `name`. A module must have already used `create_client_data` to allocate this memory.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#415-432)
#### pub fn [set\_client\_data](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.set_client_data)\<T: [ClientDataDefinition](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/trait.ClientDataDefinition.html "trait msfs::sim_connect::ClientDataDefinition")\>( \&mut self, area: &[ClientDataArea](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.ClientDataArea.html "struct msfs::sim_connect::ClientDataArea")\<T\>, data: [\&T](https://doc.rust-lang.org/1.85.0/std/primitive.reference.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Set the data of an area acquired by `create_client_data` or `get_client_data`.
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#434-454)
#### pub fn [ai\_create\_non\_atc\_aircraft](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.ai_create_non_atc_aircraft)( \&mut self, container\_title: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), tail\_number: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), init\_position: [SIMCONNECT\_DATA\_INITPOSITION](https://flybywiresim.github.io/msfs-rs/msfs/sys/struct.SIMCONNECT_DATA_INITPOSITION.html "struct msfs::sys::SIMCONNECT_DATA_INITPOSITION"), request\_id: [SIMCONNECT\_DATA\_REQUEST\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_DATA_REQUEST_ID.html "type msfs::sys::SIMCONNECT_DATA_REQUEST_ID"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#456-477)
#### pub fn [ai\_create\_parked\_atc\_aircraft](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.ai_create_parked_atc_aircraft)( \&mut self, container\_title: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), tail\_number: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), icao: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), request\_id: [SIMCONNECT\_DATA\_REQUEST\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_DATA_REQUEST_ID.html "type msfs::sys::SIMCONNECT_DATA_REQUEST_ID"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#479-492)
#### pub fn [ai\_remove\_object](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.ai_remove_object)( \&mut self, object\_id: [SIMCONNECT\_OBJECT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_OBJECT_ID.html "type msfs::sys::SIMCONNECT_OBJECT_ID"), request\_id: [SIMCONNECT\_DATA\_REQUEST\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_DATA_REQUEST_ID.html "type msfs::sys::SIMCONNECT_DATA_REQUEST_ID"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#494-507)
#### pub fn [subscribe\_to\_system\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.subscribe_to_system_event)( \&mut self, system\_event\_name: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[DWORD](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.DWORD.html "type msfs::sys::DWORD")\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#509-520)
#### pub fn [unsubscribe\_from\_system\_event](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.unsubscribe_from_system_event)( \&mut self, event\_id: [SIMCONNECT\_CLIENT\_EVENT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_CLIENT_EVENT_ID.html "type msfs::sys::SIMCONNECT_CLIENT_EVENT_ID"), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#522-536)
#### pub fn [set\_system\_event\_state](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.set_system_event_state)( \&mut self, event\_id: [SIMCONNECT\_CLIENT\_EVENT\_ID](https://flybywiresim.github.io/msfs-rs/msfs/sys/type.SIMCONNECT_CLIENT_EVENT_ID.html "type msfs::sys::SIMCONNECT_CLIENT_EVENT_ID"), on: [bool](https://doc.rust-lang.org/1.85.0/std/primitive.bool.html), ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#539-549)
#### pub fn [load\_flight](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.load_flight)(\&mut self, flight\_file\_path: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html)) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Load a .FLT file from disk
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#552-578)
#### pub fn [save\_flight](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.save_flight)( \&mut self, flight\_file\_path: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html), title: [Option](https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html "enum core::option::Option")\<&[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html)\>, description: [Option](https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html "enum core::option::Option")\<&[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html)\>, ) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Save the current sim state to a .FLT file
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#581-591)
#### pub fn [load\_flight\_plan](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.load_flight_plan)(\&mut self, flight\_plan\_file\_path: &[str](https://doc.rust-lang.org/1.85.0/std/primitive.str.html)) -\> [Result](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/type.Result.html "type msfs::sim_connect::Result")\<[()](https://doc.rust-lang.org/1.85.0/std/primitive.unit.html)\>
Load a .PLN file from disk
## Trait Implementations[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#trait-implementations)
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#61-65)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Debug-for-SimConnect%3C'_%3E)
### impl [Debug](https://doc.rust-lang.org/1.85.0/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'\_\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#62-64)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/1.85.0/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, fmt: \&mut [Formatter](https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")\<'\_\>) -\> [Result](https://doc.rust-lang.org/1.85.0/core/fmt/type.Result.html "type core::fmt::Result")
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.85.0/core/fmt/trait.Debug.html#tymethod.fmt)
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#594-600)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Drop-for-SimConnect%3C'_%3E)
### impl [Drop](https://doc.rust-lang.org/1.85.0/core/ops/drop/trait.Drop.html "trait core::ops::drop::Drop") for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'\_\>
[Source](https://flybywiresim.github.io/msfs-rs/src/msfs/sim_connect.rs.html#595-599)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.drop)
#### fn [drop](https://doc.rust-lang.org/1.85.0/core/ops/drop/trait.Drop.html#tymethod.drop)(\&mut self)
Executes the destructor for this type. [Read more](https://doc.rust-lang.org/1.85.0/core/ops/drop/trait.Drop.html#tymethod.drop)
## Auto Trait Implementations[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#synthetic-implementations)
[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Freeze-for-SimConnect%3C'a%3E)
### impl\<'a\> [Freeze](https://doc.rust-lang.org/1.85.0/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-RefUnwindSafe-for-SimConnect%3C'a%3E)
### impl\<'a\> \ for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Send-for-SimConnect%3C'a%3E)
### impl\<'a\> \ for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Sync-for-SimConnect%3C'a%3E)
### impl\<'a\> \ for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Unpin-for-SimConnect%3C'a%3E)
### impl\<'a\> [Unpin](https://doc.rust-lang.org/1.85.0/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-UnwindSafe-for-SimConnect%3C'a%3E)
### impl\<'a\> \ for [SimConnect](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html "struct msfs::sim_connect::SimConnect")\<'a\>
## Blanket Implementations[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#blanket-implementations)
[Source](https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#138)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Any-for-T)
### impl\<T\> [Any](https://doc.rust-lang.org/1.85.0/core/any/trait.Any.html "trait core::any::Any") for Twhere T: 'static + ?[Sized](https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#139)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/1.85.0/core/any/trait.Any.html#tymethod.type_id)(\&self) -\> [TypeId](https://doc.rust-lang.org/1.85.0/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/1.85.0/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#209)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Borrow%3CT%3E-for-T)
### impl\<T\> [Borrow](https://doc.rust-lang.org/1.85.0/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")\<T\> for Twhere T: ?[Sized](https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#211)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/1.85.0/core/borrow/trait.Borrow.html#tymethod.borrow)(\&self) -\> [\&T](https://doc.rust-lang.org/1.85.0/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/1.85.0/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#217)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-BorrowMut%3CT%3E-for-T)
### impl\<T\> [BorrowMut](https://doc.rust-lang.org/1.85.0/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")\<T\> for Twhere T: ?[Sized](https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#218)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/1.85.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(\&mut self) -\> [\&mut T](https://doc.rust-lang.org/1.85.0/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/1.85.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#767)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-From%3CT%3E-for-T)
### impl\<T\> [From](https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html "trait core::convert::From")\<T\> for T
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#770)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.from)
#### fn [from](https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html#tymethod.from)(t: T) -\> T
Returns the argument unchanged.
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#750-752)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-Into%3CU%3E-for-T)
### impl\<T, U\> [Into](https://doc.rust-lang.org/1.85.0/core/convert/trait.Into.html "trait core::convert::Into")\<U\> for Twhere U: [From](https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html "trait core::convert::From")\<T\>,
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#760)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.into)
#### fn [into](https://doc.rust-lang.org/1.85.0/core/convert/trait.Into.html#tymethod.into)(self) -\> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#807-809)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-TryFrom%3CU%3E-for-T)
### impl\<T, U\> [TryFrom](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")\<U\> for Twhere U: [Into](https://doc.rust-lang.org/1.85.0/core/convert/trait.Into.html "trait core::convert::Into")\<T\>,
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#811)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/1.85.0/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#814)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -\> [Result](https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html "enum core::result::Result")\<T, \<T as [TryFrom](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")\<U\>\>::[Error](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")\>
Performs the conversion.
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#792-794)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#impl-TryInto%3CU%3E-for-T)
### impl\<T, U\> [TryInto](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryInto.html "trait core::convert::TryInto")\<U\> for Twhere U: [TryFrom](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")\<T\>,
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#796)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryInto.html#associatedtype.Error) = \<U as [TryFrom](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")\<T\>\>::[Error](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#799)[ยง](https://flybywiresim.github.io/msfs-rs/msfs/sim_connect/struct.SimConnect.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryInto.html#tymethod.try_into)(self) -\> [Result](https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html "enum core::result::Result")\<U, \<U as [TryFrom](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")\<T\>\>::[Error](https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")\>
Performs the conversion. |
| Readable Markdown | null |
| Shard | 143 (laksa) |
| Root Hash | 2566890010099092343 |
| Unparsed URL | io,github!flybywiresim,/msfs-rs/msfs/sim_connect/struct.SimConnect.html s443 |