pub struct CollectivePerceptionMessage {
pub protocol_version: u8,
pub station_id: u32,
pub generation_delta_time: u16,
pub management_container: ManagementContainer,
pub station_data_container: Option<StationDataContainer>,
pub sensor_information_container: Vec<SensorInformation>,
pub perceived_object_container: Vec<PerceivedObject>,
}Fields§
§protocol_version: u8§station_id: u32§generation_delta_time: u16§management_container: ManagementContainer§station_data_container: Option<StationDataContainer>§sensor_information_container: Vec<SensorInformation>§perceived_object_container: Vec<PerceivedObject>Implementations§
Source§impl CollectivePerceptionMessage
impl CollectivePerceptionMessage
pub fn mobile_perceived_object_list(&self) -> Vec<MobilePerceivedObject>
Trait Implementations§
Source§impl Clone for CollectivePerceptionMessage
impl Clone for CollectivePerceptionMessage
Source§fn clone(&self) -> CollectivePerceptionMessage
fn clone(&self) -> CollectivePerceptionMessage
Returns a copy 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 CollectivePerceptionMessage
impl Debug for CollectivePerceptionMessage
Source§impl Default for CollectivePerceptionMessage
impl Default for CollectivePerceptionMessage
Source§fn default() -> CollectivePerceptionMessage
fn default() -> CollectivePerceptionMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollectivePerceptionMessage
impl<'de> Deserialize<'de> for CollectivePerceptionMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CollectivePerceptionMessage
impl Hash for CollectivePerceptionMessage
Source§impl Mobile for CollectivePerceptionMessage
impl Mobile for CollectivePerceptionMessage
fn mobile_id(&self) -> u32
fn position(&self) -> &ReferencePosition
fn speed(&self) -> Option<u16>
fn heading(&self) -> Option<u16>
fn stopped(&self) -> bool
fn heading_in_degrees(&self) -> Option<f64>
fn speed_in_meter_per_second(&self) -> Option<f64>
fn speed_in_kilometer_per_hour(&self) -> Option<f64>
impl StructuralPartialEq for CollectivePerceptionMessage
Auto Trait Implementations§
impl Freeze for CollectivePerceptionMessage
impl RefUnwindSafe for CollectivePerceptionMessage
impl Send for CollectivePerceptionMessage
impl Sync for CollectivePerceptionMessage
impl Unpin for CollectivePerceptionMessage
impl UnwindSafe for CollectivePerceptionMessage
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