Crate dis_rs

source ·

Modules§

Structs§

Enums§

Constants§

Traits§

  • Trait for PduBody-s to query basic information, typically used in the header
  • Trait for PDUs to implement whether an interaction between one or two entities happens. Used to generically query the originating EntityId and (optional) receiving EntityId of the interaction. When a PDU has no interaction, both the originator and receiver are None.
  • 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.
  • 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§

  • 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.
  • 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.
  • 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.
  • 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.
  • 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.