Skip to main content

LiveEntityPdu

Trait LiveEntityPdu 

Source
pub trait LiveEntityPdu: Pdu<Header = LiveEntityPduHeader> { }
Expand description

A PDU of the Live Entity Information/Interaction family, whose LiveEntityPduHeader has a subprotocol number where other PDUs have their PDU Status record.

It is implemented for every Pdu<Header = LiveEntityPduHeader>. A function that takes one does not accept standard PDUs:

ⓘ
use open_dis_rust::{entity_information::EntityStatePdu, prelude::*};

fn subprotocol(pdu: &impl LiveEntityPdu) {}
subprotocol(&EntityStatePdu::new());

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§