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: PDUHeaderRecord
entity_id_record: EntityIDRecord
force_id_field: ForceID
number_of_articulation_parameters_field: u8
entity_type_record: EntityTypeRecord
alternative_entity_type_record: EntityTypeRecord
entity_linear_velocity_record: LinearVelocityRecord
entity_location_record: WorldCoordinateRecord
entity_orientation_record: EulerAnglesRecord
entity_appearance_record: EntityAppearanceRecord
dead_reckoning_parameters_record: DeadReckoningParametersRecord
entity_marking_record: EntityMarkingRecord
entity_capabilities_record: EntityCapabilitiesRecord
articulation_parameter_record: f32
Implementations
sourceimpl EntityStatePDU
impl EntityStatePDU
Trait Implementations
sourceimpl Clone for EntityStatePDU
impl Clone for EntityStatePDU
sourcefn clone(&self) -> EntityStatePDU
fn clone(&self) -> EntityStatePDU
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 EntityStatePDU
impl Debug for EntityStatePDU
sourceimpl PDU for EntityStatePDU
impl PDU for EntityStatePDU
sourcefn deserialise(buffer: BytesMut) -> Result<EntityStatePDU, DISError>
fn deserialise(buffer: BytesMut) -> Result<EntityStatePDU, DISError>
Creates an EntityStatePDU from a BytesMut struct.
sourcefn serialise(&self, buf: &mut BytesMut)
fn serialise(&self, buf: &mut BytesMut)
Fills a BytesMut struct with a EntityStatePDU serialised into binary. This buffer is then ready to be sent via UDP to the simluation network.
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.
Auto Trait Implementations
impl RefUnwindSafe for EntityStatePDU
impl Send for EntityStatePDU
impl Sync for EntityStatePDU
impl Unpin for EntityStatePDU
impl UnwindSafe for EntityStatePDU
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