pub struct EntityStatePDU {
Show 14 fields pub pdu_header_record: PDUHeaderRecord, pub entity_id_record: EntityIDRecord, pub force_id_field: ForceID, pub number_of_articulation_parameters_field: u8, pub entity_type_record: EntityTypeRecord, pub alternative_entity_type_record: EntityTypeRecord, pub entity_linear_velocity_record: LinearVelocityRecord, pub entity_location_record: WorldCoordinateRecord, pub entity_orientation_record: EulerAnglesRecord, pub entity_appearance_record: EntityAppearanceRecord, pub dead_reckoning_parameters_record: DeadReckoningParametersRecord, pub entity_marking_record: EntityMarkingRecord, pub entity_capabilities_record: EntityCapabilitiesRecord, pub articulation_parameter_record: f32,
}
Expand description

Entity State PDU as defined in IEEE 1278.1 standard. Used to communicate the state of an entity during the simulation.

Fields

pdu_header_record: PDUHeaderRecordentity_id_record: EntityIDRecordforce_id_field: ForceIDnumber_of_articulation_parameters_field: u8entity_type_record: EntityTypeRecordalternative_entity_type_record: EntityTypeRecordentity_linear_velocity_record: LinearVelocityRecordentity_location_record: WorldCoordinateRecordentity_orientation_record: EulerAnglesRecordentity_appearance_record: EntityAppearanceRecorddead_reckoning_parameters_record: DeadReckoningParametersRecordentity_marking_record: EntityMarkingRecordentity_capabilities_record: EntityCapabilitiesRecordarticulation_parameter_record: f32

Implementations

Provides a function to create a default EntityStatePDU. The provided PDU represents a simple munition used for testing.

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

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

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.