open_dis_rust/
lib.rs

1//     open-dis-rust - Rust implementation of the IEEE 1278.1-2012 Distributed Interactive
2//                     Simulation (DIS) application protocol
3//     Copyright (C) 2023 Cameron Howell
4//
5//     Licensed under the BSD 2-Clause License
6
7//! # `open_dis_rust` crate
8//!
9//! This is a library that implements the IEEE 1278.1-2012 Distributed Interactive Simulation
10//! application protocol.
11//!
12//! For more information on this standard, you may view the publication from the
13//! [IEEE website](https://ieee.org/).
14//!
15//! ## Example usage
16//!
17//! ```rust
18//! use open_dis_rust::common::pdu::Pdu;
19//! use open_dis_rust::simulation_management::acknowledge_pdu::AcknowledgePdu;
20//! use bytes::BytesMut;
21//!
22//! // Create new mutable byte array
23//! let mut bytes = BytesMut::new();
24//! // Create a pre-populated AcknowledgePdu
25//! let mut ack_pdu = AcknowledgePdu::default();
26//! // Serialize the PDU into the byte array, which can then be sent over UDP
27//! ack_pdu.serialize(&mut bytes);
28//! ```
29
30pub mod common;
31pub mod distributed_emissions;
32pub mod entity_information;
33pub mod entity_management;
34pub mod information_operations;
35pub mod logistics;
36pub mod minefield;
37pub mod radio_communications;
38pub mod simulation_management;
39pub mod simulation_management_with_reliability;
40pub mod synthetic_environment;
41pub mod warfare;