pub struct EntityId {
pub entity_key: [u8; 3],
pub entity_kind: EntityKind,
}Expand description
EntityId: 4-byte endpoint identifier within a participant.
Layout: 3 bytes entity_key + 1 byte entity_kind.
Fields§
§entity_key: [u8; 3]First 3 bytes (key).
entity_kind: EntityKindLast byte (kind).
Implementations§
Source§impl EntityId
impl EntityId
Sourcepub const PARTICIPANT: Self
pub const PARTICIPANT: Self
Reserved participant EntityId (Spec §9.3.1.2).
Sourcepub const SPDP_BUILTIN_PARTICIPANT_WRITER: Self
pub const SPDP_BUILTIN_PARTICIPANT_WRITER: Self
SPDP Builtin Participant Writer (Spec §9.3.1.5 Table 9.4). Multicast beacon sender in the discovery path.
Sourcepub const SPDP_BUILTIN_PARTICIPANT_READER: Self
pub const SPDP_BUILTIN_PARTICIPANT_READER: Self
SPDP Builtin Participant Reader.
Sourcepub const SEDP_BUILTIN_SUBSCRIPTIONS_WRITER: Self
pub const SEDP_BUILTIN_SUBSCRIPTIONS_WRITER: Self
SEDP Subscriptions Writer .
Sourcepub const SEDP_BUILTIN_SUBSCRIPTIONS_READER: Self
pub const SEDP_BUILTIN_SUBSCRIPTIONS_READER: Self
SEDP Subscriptions Reader .
Sourcepub const SEDP_BUILTIN_PUBLICATIONS_WRITER: Self
pub const SEDP_BUILTIN_PUBLICATIONS_WRITER: Self
SEDP Publications Writer .
Sourcepub const SEDP_BUILTIN_PUBLICATIONS_READER: Self
pub const SEDP_BUILTIN_PUBLICATIONS_READER: Self
SEDP Publications Reader .
Sourcepub const BUILTIN_PARTICIPANT_MESSAGE_WRITER: Self
pub const BUILTIN_PARTICIPANT_MESSAGE_WRITER: Self
BUILTIN_PARTICIPANT_MESSAGE_WRITER — Writer Liveliness
Protocol (WLP). Sends ParticipantMessageData over the
topic DCPSParticipantMessage (DDSI-RTPS 2.5 §8.4.13,
§9.3.1.5 Tab. 9.4 — EntityKey [00, 02, 00],
EntityKind BuiltinWriterWithKey = 0xC2).
Sourcepub const BUILTIN_PARTICIPANT_MESSAGE_READER: Self
pub const BUILTIN_PARTICIPANT_MESSAGE_READER: Self
BUILTIN_PARTICIPANT_MESSAGE_READER — counterpart to the
WLP writer (DDSI-RTPS 2.5 §8.4.13, §9.3.1.5 Tab. 9.4).
Sourcepub const TL_SVC_REQ_WRITER: Self
pub const TL_SVC_REQ_WRITER: Self
TypeLookup Service Request Writer.
Sourcepub const TL_SVC_REQ_READER: Self
pub const TL_SVC_REQ_READER: Self
TypeLookup Service Request Reader.
Sourcepub const TL_SVC_REPLY_WRITER: Self
pub const TL_SVC_REPLY_WRITER: Self
TypeLookup Service Reply Writer.
Sourcepub const TL_SVC_REPLY_READER: Self
pub const TL_SVC_REPLY_READER: Self
TypeLookup Service Reply Reader.
Sourcepub const SEDP_BUILTIN_PUBLICATIONS_SECURE_WRITER: Self
pub const SEDP_BUILTIN_PUBLICATIONS_SECURE_WRITER: Self
SEDP_BUILTIN_PUBLICATIONS_SECURE_WRITER — secure SEDP
publications writer (bit 16, §9.3.1.6 Tab.13).
Sourcepub const SEDP_BUILTIN_PUBLICATIONS_SECURE_READER: Self
pub const SEDP_BUILTIN_PUBLICATIONS_SECURE_READER: Self
SEDP_BUILTIN_PUBLICATIONS_SECURE_READER — Bit 17.
Sourcepub const SEDP_BUILTIN_SUBSCRIPTIONS_SECURE_WRITER: Self
pub const SEDP_BUILTIN_SUBSCRIPTIONS_SECURE_WRITER: Self
SEDP_BUILTIN_SUBSCRIPTIONS_SECURE_WRITER — Bit 18.
Sourcepub const SEDP_BUILTIN_SUBSCRIPTIONS_SECURE_READER: Self
pub const SEDP_BUILTIN_SUBSCRIPTIONS_SECURE_READER: Self
SEDP_BUILTIN_SUBSCRIPTIONS_SECURE_READER — Bit 19.
Sourcepub const BUILTIN_PARTICIPANT_MESSAGE_SECURE_WRITER: Self
pub const BUILTIN_PARTICIPANT_MESSAGE_SECURE_WRITER: Self
BUILTIN_PARTICIPANT_MESSAGE_SECURE_WRITER — secure WLP writer
(bit 20, §7.4.7.1).
Sourcepub const BUILTIN_PARTICIPANT_MESSAGE_SECURE_READER: Self
pub const BUILTIN_PARTICIPANT_MESSAGE_SECURE_READER: Self
BUILTIN_PARTICIPANT_MESSAGE_SECURE_READER — Bit 21.
Sourcepub const BUILTIN_PARTICIPANT_STATELESS_MESSAGE_WRITER: Self
pub const BUILTIN_PARTICIPANT_STATELESS_MESSAGE_WRITER: Self
BUILTIN_PARTICIPANT_STATELESS_MESSAGE_WRITER — auth-handshake
topic writer (bit 22, §7.4.7.1, §10.3.4 auth stateless wire).
NoKey, since the stateless topic is keyless.
Sourcepub const BUILTIN_PARTICIPANT_STATELESS_MESSAGE_READER: Self
pub const BUILTIN_PARTICIPANT_STATELESS_MESSAGE_READER: Self
BUILTIN_PARTICIPANT_STATELESS_MESSAGE_READER — Bit 23.
Sourcepub const BUILTIN_PARTICIPANT_VOLATILE_MESSAGE_SECURE_WRITER: Self
pub const BUILTIN_PARTICIPANT_VOLATILE_MESSAGE_SECURE_WRITER: Self
BUILTIN_PARTICIPANT_VOLATILE_MESSAGE_SECURE_WRITER — crypto
key-exchange topic writer (bit 24, §7.4.7.1, §10.5.4
VolatileMessageSecure wire).
Sourcepub const BUILTIN_PARTICIPANT_VOLATILE_MESSAGE_SECURE_READER: Self
pub const BUILTIN_PARTICIPANT_VOLATILE_MESSAGE_SECURE_READER: Self
BUILTIN_PARTICIPANT_VOLATILE_MESSAGE_SECURE_READER — Bit 25.
Sourcepub const SPDP_RELIABLE_BUILTIN_PARTICIPANTS_SECURE_WRITER: Self
pub const SPDP_RELIABLE_BUILTIN_PARTICIPANTS_SECURE_WRITER: Self
SPDP_RELIABLE_BUILTIN_PARTICIPANTS_SECURE_WRITER — secure
SPDP writer for the DCPSParticipantsSecure topic (bit 26).
Sourcepub const SPDP_RELIABLE_BUILTIN_PARTICIPANTS_SECURE_READER: Self
pub const SPDP_RELIABLE_BUILTIN_PARTICIPANTS_SECURE_READER: Self
SPDP_RELIABLE_BUILTIN_PARTICIPANTS_SECURE_READER — Bit 27.
Sourcepub const fn user_writer_with_key(key: [u8; 3]) -> Self
pub const fn user_writer_with_key(key: [u8; 3]) -> Self
Constructs a user-writer endpoint with key.
Sourcepub const fn user_reader_with_key(key: [u8; 3]) -> Self
pub const fn user_reader_with_key(key: [u8; 3]) -> Self
Constructs a user-reader endpoint with key.
Sourcepub const fn user_writer_no_key(key: [u8; 3]) -> Self
pub const fn user_writer_no_key(key: [u8; 3]) -> Self
Constructs a user-writer endpoint without key (NoKey). Spec §9.3.1.2 Table 9.1: entity_kind=0x03 for NoKey writers. Important for cross-vendor interop: if the IDL type has no @key, the writer must be published as NoKey, otherwise a remote reader rejects the DATA submessage (writer/reader kind mismatch).
Sourcepub const fn user_reader_no_key(key: [u8; 3]) -> Self
pub const fn user_reader_no_key(key: [u8; 3]) -> Self
Constructs a user-reader endpoint without key (NoKey). Spec §9.3.1.2 Table 9.1: entity_kind=0x04 for NoKey readers.
Sourcepub const fn is_secure_builtin(self) -> bool
pub const fn is_secure_builtin(self) -> bool
True if this is one of the 12 secure builtin EntityIds from DDS-Security 1.2 §7.4.7.1 Tab.7.
Sourcepub fn from_bytes(bytes: [u8; 4]) -> Self
pub fn from_bytes(bytes: [u8; 4]) -> Self
Reads 4 bytes.