pub struct LinearObjectStatePdu {
pub pdu_header: PduHeader,
pub object_id: EntityId,
pub referenced_object_id: EntityId,
pub update_number: u16,
pub force_id: u8,
pub number_of_segments: u8,
pub requester_id: SimulationAddress,
pub receiving_id: SimulationAddress,
pub object_type: ObjectType,
pub linear_segment_parameters: Vec<LinearSegmentParameter>,
}
Expand description
Implemented according to IEEE 1278.1-2012 §7.10.5
Fields§
§pdu_header: PduHeader
§object_id: EntityId
§referenced_object_id: EntityId
§update_number: u16
§force_id: u8
§number_of_segments: u8
§requester_id: SimulationAddress
§receiving_id: SimulationAddress
§object_type: ObjectType
§linear_segment_parameters: Vec<LinearSegmentParameter>
Trait Implementations§
Source§impl Clone for LinearObjectStatePdu
impl Clone for LinearObjectStatePdu
Source§fn clone(&self) -> LinearObjectStatePdu
fn clone(&self) -> LinearObjectStatePdu
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinearObjectStatePdu
impl Debug for LinearObjectStatePdu
Source§impl Default for LinearObjectStatePdu
impl Default for LinearObjectStatePdu
Source§fn default() -> Self
fn default() -> Self
Creates a default Linear Object State PDU with arbitrary environmental process ID
§Examples
Initializing an Linear Object State PDU:
use open_dis_rust::synthetic_environment::linear_object_state_pdu::LinearObjectStatePdu;
let linear_object_state_pdu = LinearObjectStatePdu::default();
Auto Trait Implementations§
impl Freeze for LinearObjectStatePdu
impl RefUnwindSafe for LinearObjectStatePdu
impl Send for LinearObjectStatePdu
impl Sync for LinearObjectStatePdu
impl Unpin for LinearObjectStatePdu
impl UnwindSafe for LinearObjectStatePdu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more