rtps-rs 0.1.2

Real Time Publish Subscribe protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::structure::guid::GUID_t;

/// Base class for all RTPS entities. RTPS Entity represents the class of
/// objects that are visible to other RTPS Entities on the network. As such,
/// RTPS Entity objects have a globally-unique identifier (GUID) and can be
/// referenced inside RTPS messages.
pub struct EntityAttributes {
    /// Globally and uniquely identifies the RTPS Entity within the DDS domain.
    pub guid: GUID_t,
}

pub trait Entity {
    fn as_entity(&self) -> &EntityAttributes;
}