pub struct EventReportPDU {
    pub pdu_header_record: PDUHeaderRecord,
    pub originating_entity_id_record: EntityIDRecord,
    pub receviving_entity_id_record: EntityIDRecord,
    pub event_type_field: EventType,
    pub padding: u32,
    pub number_of_fixed_datum_records_field: u32,
    pub number_of_variable_datum_records_field: u32,
    pub fixed_datum_records_field: u64,
    pub variable_datum_records_field: u64,
}
Expand description

Event Report PDU as defined in IEEE 1278.1 standard. Used to communicate an important event during the simulation.

Fields

pdu_header_record: PDUHeaderRecordoriginating_entity_id_record: EntityIDRecordreceviving_entity_id_record: EntityIDRecordevent_type_field: EventTypepadding: u32number_of_fixed_datum_records_field: u32number_of_variable_datum_records_field: u32fixed_datum_records_field: u64variable_datum_records_field: u64

Implementations

Provides a EventReportPDU signalling the creation of a new entity.

Examples

Creating a blank EventReportPDU:

let event_report_pdu = EventReportPDU::default();

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Fills a BytesMut struct with a EventReportPDU serialised into binary. This buffer is then ready to be sent via UDP to the simluation network.

Creates a PDU from a BytesMut struct.

Creates a PDU from a BytesMut struct.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.