Attribute Macro msfs::standalone_module

source ·
#[standalone_module]
Expand description

Declare a standalone module.

#[standalone_module]
async fn module(mut module: msfs::StandaloneModule) -> Result<(), Box<dyn std::error::Error>> {
  while let Some(event) = module.next_event().await {
    // ...
  }
}