Modules§
- acknowledge
- acknowledge_
r - action_
request - action_
request_ r - action_
response - action_
response_ r - aggregate_
state - attribute
- collision
- collision_
elastic - comment
- comment_
r - create_
entity - create_
entity_ r - data
- data_
query - data_
query_ r - data_r
- designator
- detonation
- electromagnetic_
emission - entity_
state - entity_
state_ update - enumerations
- errors
- event_
report - event_
report_ r - fire
- iff
- is_
group_ of - is_
part_ of - model
- other
- receiver
- record_
query_ r - record_
r - remove_
entity - remove_
entity_ r - repair_
complete - repair_
response - resupply_
cancel - resupply_
offer - resupply_
received - sees
- service_
request - set_
data - set_
data_ r - set_
record_ r - signal
- start_
resume - start_
resume_ r - stop_
freeze - stop_
freeze_ r - transfer_
ownership - transmitter
- underwater_
acoustic - utils
Structs§
Enums§
Constants§
- ALL_
AGGS - ALL_
APPLIC - ALL_
BEAMS - ALL_
EMITTERS - ALL_
ENTITIES - ALL_
OBJECTS - ALL_
SITES - EP_
NO_ SEQUENCE - IO_
UNTIL_ FURTHER_ NOTICE - MAX_
PDU_ SIZE_ BITS - MAX_
PDU_ SIZE_ OCTETS - MULTIPLES_
PRESENT - NO_AGG
- NO_
APPLIC - NO_BEAM
- NO_
CATEGORY - NO_
EMITTER - NO_
ENTITY - NO_
FIRE_ MISSION - NO_KIND
- NO_
OBJECT - NO_
PATTERN - NO_
REF_ NUMBER - NO_SITE
- NO_
SPECIFIC - NO_
SUBCAT - NO_
VALUE - POWER_
ENGINE_ OFF - POWER_
IDLE - POWER_
MAX_ AFTERBURNER - POWER_
MILITARY - POWER_
MIN_ AFTERBURNER - RQST_
ASSIGN_ ID
Traits§
- Body
Info - Trait for PduBody-s to query basic information, typically used in the header
- Interaction
- Trait for PDUs to implement whether an interaction between one or two
entities happens. Used to generically query the originating
EntityId
and (optional) receivingEntityId
of the interaction. When a PDU has no interaction, both the originator and receiver areNone
. - Serialize
- Trait that implements writing data structures to a buffer. This serialize must be independent of protocol version differences for the data structure. Returns the number of bytes written to the buffer.
- Serialize
Pdu - Trait that implements writing a
PduBody
to a buffer based on the protocol version of the PDU. Returns the number of bytes written to the buffer.
Functions§
- entity_
capabilities_ from_ bytes - Helper function to convert the V7 on-wire format bytes (as u32) to an
EntityCapabilities
struct based on theEntityType
of the entity. - parse
- Parses the contents of the input, determining the DIS version by itself. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
- parse_
dr_ other_ parameters - parse_
pdu_ status_ fields - Parses the pdu status sub-fields into a
PduStatus
struct, depending on thePduType
- parse_
v6 - Parses the contents of the input as DIS version 6. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
- parse_
v7 - Parses the contents of the input as DIS version 7. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
- parse_
v6_ pdus - Parses the contents of the input as DIS version 6. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
- parse_
v7_ pdus - Parses the contents of the input as DIS version 7. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
- serialize_
pdu_ status - Serialization function for
PduStatus
. The function formats the 8-bit field for in thePduHeader
.PduStatus
needs thePduType
to determine which combination of indicators in the status field to write to the buffer. Therefore it uses a separate function instead of theSerialize
trait. - supported_
protocol_ versions - Returns a
Vec
of allProtocolVersion
s supported by the crate.