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§
- BodyInfo 
- 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 EntityIdand (optional) receivingEntityIdof 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.
- SerializePdu 
- Trait that implements writing a PduBodyto 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 EntityCapabilitiesstruct based on theEntityTypeof 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 PduStatusstruct, 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.PduStatusneeds thePduTypeto determine which combination of indicators in the status field to write to the buffer. Therefore it uses a separate function instead of theSerializetrait.
- supported_protocol_ versions 
- Returns a Vecof allProtocolVersions supported by the crate.