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: PDUHeaderRecord
originating_entity_id_record: EntityIDRecord
receviving_entity_id_record: EntityIDRecord
event_type_field: EventType
padding: u32
number_of_fixed_datum_records_field: u32
number_of_variable_datum_records_field: u32
fixed_datum_records_field: u64
variable_datum_records_field: u64
Implementations
sourceimpl EventReportPDU
impl EventReportPDU
Trait Implementations
sourceimpl Clone for EventReportPDU
impl Clone for EventReportPDU
sourcefn clone(&self) -> EventReportPDU
fn clone(&self) -> EventReportPDU
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventReportPDU
impl Debug for EventReportPDU
sourceimpl PDU for EventReportPDU
impl PDU for EventReportPDU
sourcefn serialise(&self, buf: &mut BytesMut)
fn serialise(&self, buf: &mut BytesMut)
Fills a BytesMut struct with a EventReportPDU serialised into binary. This buffer is then ready to be sent via UDP to the simluation network.
sourcefn deserialise(buffer: BytesMut) -> Result<Self, DISError> where
Self: Sized,
fn deserialise(buffer: BytesMut) -> Result<Self, DISError> where
Self: Sized,
Creates a PDU from a BytesMut struct.
fn as_any(&self) -> &dyn Any
sourcefn deserialise_without_header(
buffer: BytesMut,
pdu_header: PDUHeaderRecord
) -> Result<Self, DISError> where
Self: Sized,
fn deserialise_without_header(
buffer: BytesMut,
pdu_header: PDUHeaderRecord
) -> Result<Self, DISError> where
Self: Sized,
Creates a PDU from a BytesMut struct.
impl Copy for EventReportPDU
Auto Trait Implementations
impl RefUnwindSafe for EventReportPDU
impl Send for EventReportPDU
impl Sync for EventReportPDU
impl Unpin for EventReportPDU
impl UnwindSafe for EventReportPDU
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more